From a5baa33d2629d223e71be6d4127516b4172e638e Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Tue, 13 Aug 2019 14:46:13 -0400 Subject: [PATCH 01/12] final edits --- src/main/webapp/index.jsp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 36de42ba..4be3b2c8 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -4,7 +4,7 @@

WelCome to Jenkins! We are working on Code Pipeline version 2

-

This is change is to verify the Stage vs Production

> +

This is change is to verify the Stage vs Production. Change made by the Owner

> From 22c9186b94f719901f6a7a7a9f629422a59a0779 Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Thu, 15 Aug 2019 14:21:45 -0400 Subject: [PATCH 02/12] added Jenkinsfile --- Jenkinsfile | 72 ++++++++++++++++------------------------------------ Jenkinsfile1 | 50 ++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 50 deletions(-) create mode 100644 Jenkinsfile1 diff --git a/Jenkinsfile b/Jenkinsfile index c549f81c..53d9ea9e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,50 +1,22 @@ -pipeline { - agent any - stages { - stage ('Build Servlet Project') { - steps { - /*For windows machine */ - bat 'mvn clean package' - - /*For Mac & Linux machine */ - // sh 'mvn clean package' - } - - post{ - success{ - echo 'Now Archiving ....' - - archiveArtifacts artifacts : '**/*.war' - } - } - } - - stage ('Deploy Build in Staging Area'){ - steps{ - - build job : 'Deploy-StagingArea-Piple' - - } - } - - stage ('Deploy to Production'){ - steps{ - timeout (time: 5, unit:'DAYS'){ - input message: 'Approve PRODUCTION Deployment?' - } - - build job : 'Deploy-Production-Pipeline' - } - - post{ - success{ - echo 'Deployment on PRODUCTION is Successful' - } - - failure{ - echo 'Deployement Failure on PRODUCTION' - } - } - } - } -} +pipeline { + agent any + stages { + stage ('Initialize') { + steps { + echo "Initializing the Code File" + } + } + + stage ('Build') { + steps { + echo 'Hello World' + } + } + + stage ('Deploy') { + steps { + echo 'Deployed an Artifact' + } + } + } +} \ No newline at end of file diff --git a/Jenkinsfile1 b/Jenkinsfile1 new file mode 100644 index 00000000..c549f81c --- /dev/null +++ b/Jenkinsfile1 @@ -0,0 +1,50 @@ +pipeline { + agent any + stages { + stage ('Build Servlet Project') { + steps { + /*For windows machine */ + bat 'mvn clean package' + + /*For Mac & Linux machine */ + // sh 'mvn clean package' + } + + post{ + success{ + echo 'Now Archiving ....' + + archiveArtifacts artifacts : '**/*.war' + } + } + } + + stage ('Deploy Build in Staging Area'){ + steps{ + + build job : 'Deploy-StagingArea-Piple' + + } + } + + stage ('Deploy to Production'){ + steps{ + timeout (time: 5, unit:'DAYS'){ + input message: 'Approve PRODUCTION Deployment?' + } + + build job : 'Deploy-Production-Pipeline' + } + + post{ + success{ + echo 'Deployment on PRODUCTION is Successful' + } + + failure{ + echo 'Deployement Failure on PRODUCTION' + } + } + } + } +} From 64133e0727fa62a1781d08f09e2fe274d32e8c43 Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Thu, 15 Aug 2019 14:42:47 -0400 Subject: [PATCH 03/12] jenkinsfile_JSPln added --- Jenkinsfile_JSPln | 23 +++++++++++++++++++++++ src/main/webapp/index.jsp | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Jenkinsfile_JSPln diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln new file mode 100644 index 00000000..79c74e43 --- /dev/null +++ b/Jenkinsfile_JSPln @@ -0,0 +1,23 @@ +pipeline { + agent any + stages { + stage ('Build Servlet Project') { + steps { + /*For Windows machine*/ + bat 'mvn clean package' + + /*For Mac & Linuc machines*/ + //sh 'mvn clean package' + + } + + post { + success{ + echo 'Now archiving...' + + archiveArtifacts artifacts : '**/*.war' + } + } + } + } +} \ No newline at end of file diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 4be3b2c8..950ec906 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -4,7 +4,9 @@

WelCome to Jenkins! We are working on Code Pipeline version 2

-

This is change is to verify the Stage vs Production. Change made by the Owner

> +

Welcome to Jenkins

+ +

This is change is to verify the Stage vs Production. Change made by the Owner

From add6fcb7eb1cec45b59efc848139cd95ed3362a6 Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Thu, 15 Aug 2019 15:01:37 -0400 Subject: [PATCH 04/12] deploy changes --- Jenkinsfile_JSPln | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln index 79c74e43..eba576e7 100644 --- a/Jenkinsfile_JSPln +++ b/Jenkinsfile_JSPln @@ -19,5 +19,10 @@ pipeline { } } } + stage ('Deploy Build in staging area') { + steps{ + build job: 'Deploy_Staging_Env_Pipeline' + } + } } } \ No newline at end of file From e7d9c0402e9b513976cc7e453d23d05728b2db02 Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Thu, 15 Aug 2019 16:06:18 -0400 Subject: [PATCH 05/12] change for deploement --- Jenkinsfile_JSPln | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln index eba576e7..ff48c6cd 100644 --- a/Jenkinsfile_JSPln +++ b/Jenkinsfile_JSPln @@ -24,5 +24,22 @@ pipeline { build job: 'Deploy_Staging_Env_Pipeline' } } + stage ('Deploy to Production'){ + steps{ + timeout (time: 5, unit: 'Days') { + input message: 'Approve Production Deployment?' + } + build job: 'Deploy-Prod-Pipeline' + } + + post{ + success{ + echo 'Deployment to Production Successful' + } + failure{ + echo 'Deployment failed' + } + } + } } } \ No newline at end of file From 79db7496f0463c122440a2ac453d86a78ccb8e9c Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Thu, 15 Aug 2019 16:13:30 -0400 Subject: [PATCH 06/12] fixed days --- Jenkinsfile_JSPln | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln index ff48c6cd..351776c6 100644 --- a/Jenkinsfile_JSPln +++ b/Jenkinsfile_JSPln @@ -26,7 +26,7 @@ pipeline { } stage ('Deploy to Production'){ steps{ - timeout (time: 5, unit: 'Days') { + timeout (time: 5, unit:'Day') { input message: 'Approve Production Deployment?' } build job: 'Deploy-Prod-Pipeline' From cd86d69a99e450bda4e9fd58bc958f70922ce473 Mon Sep 17 00:00:00 2001 From: Praneeth0189 <50640409+Praneeth0189@users.noreply.github.com> Date: Thu, 15 Aug 2019 16:18:03 -0400 Subject: [PATCH 07/12] Update Jenkinsfile_JSPln --- Jenkinsfile_JSPln | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln index 351776c6..de1fa8cd 100644 --- a/Jenkinsfile_JSPln +++ b/Jenkinsfile_JSPln @@ -26,7 +26,7 @@ pipeline { } stage ('Deploy to Production'){ steps{ - timeout (time: 5, unit:'Day') { + timeout (time: 5, unit:'DAYS') { input message: 'Approve Production Deployment?' } build job: 'Deploy-Prod-Pipeline' @@ -42,4 +42,4 @@ pipeline { } } } -} \ No newline at end of file +} From 01d7a738a4410979d985f8892007fe6c3e747f2f Mon Sep 17 00:00:00 2001 From: Praneeth Dasyam Date: Sat, 28 Sep 2019 16:10:31 -0400 Subject: [PATCH 08/12] test --- Jenkinsfile_JSPln | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile_JSPln b/Jenkinsfile_JSPln index 351776c6..03b937a0 100644 --- a/Jenkinsfile_JSPln +++ b/Jenkinsfile_JSPln @@ -26,7 +26,7 @@ pipeline { } stage ('Deploy to Production'){ steps{ - timeout (time: 5, unit:'Day') { + timeout (time: 5, unit:'DAYS') { input message: 'Approve Production Deployment?' } build job: 'Deploy-Prod-Pipeline' From d6e7a0371cade45f7240f9f16cf2195945d8620f Mon Sep 17 00:00:00 2001 From: Praneeth Date: Sun, 12 Dec 2021 17:25:22 -0500 Subject: [PATCH 09/12] testing changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de9dd576..9282fd74 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ The application will be available on `http://localhost:8080`. - ``` +git tesing changes From c3229583f2efe77bdee1ed4728016e40d386ef42 Mon Sep 17 00:00:00 2001 From: Praneeth0189 <50640409+Praneeth0189@users.noreply.github.com> Date: Sun, 12 Dec 2021 17:39:38 -0500 Subject: [PATCH 10/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9282fd74..f5a5465b 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ The application will be available on `http://localhost:8080`. -git tesing changes +git tase;lk;lkfds;lesing changes From 1cf33c758249f6576d9e9861e79347d7bf02cf9d Mon Sep 17 00:00:00 2001 From: Praneeth Date: Sun, 12 Dec 2021 17:41:04 -0500 Subject: [PATCH 11/12] test1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9282fd74..c64a6a32 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ The application will be available on `http://localhost:8080`. -git tesing changes +git tesing 123 changes From a890fa9078d1678131409828ad2d4ff59cfd4341 Mon Sep 17 00:00:00 2001 From: Praneeth0189 <50640409+Praneeth0189@users.noreply.github.com> Date: Sun, 12 Dec 2021 17:43:52 -0500 Subject: [PATCH 12/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5a5465b..2ad429ef 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,4 @@ The application will be available on `http://localhost:8080`. -git tase;lk;lkfds;lesing changes +git tase;lk;lkfds;lesing changes cannot nlkjlsd