From f25a204254b67afbc06c26131720287a8ee958f7 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 28 Oct 2018 11:14:07 +0530 Subject: [PATCH 001/136] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2fcc67d..7e13daa 100755 --- a/pom.xml +++ b/pom.xml @@ -27,12 +27,12 @@ nexus - http://172.31.17.173:8081/repository/maven-snapshots/ + http://13.233.125.37:8081/repository/maven-snapshots/ nexus - http://172.31.17.173:8081/repository/maven-releases/ + http://13.233.125.37:8081/repository/maven-releases/ From 64a3f0f3df40c458f00e57d966aec87814001dfb Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 28 Oct 2018 11:36:00 +0530 Subject: [PATCH 002/136] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7e13daa..83e1709 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ in.javahome myweb war - 0.0.3 + 0.0.4-SNAPSHOT my-app http://maven.apache.org From 11702be3ad507b9e1ce501fd05694ddb73ce2856 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 28 Oct 2018 11:38:04 +0530 Subject: [PATCH 003/136] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 83e1709..9b05e10 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ in.javahome myweb war - 0.0.4-SNAPSHOT + 0.0.4 my-app http://maven.apache.org From ff57e3e144790442f1344a0373f40c2002a94aac Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 11:12:58 +0530 Subject: [PATCH 004/136] Update CalculatorTest.java --- .../myweb/controller/CalculatorTest.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java index e815aad..532f2c9 100755 --- a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java +++ b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java @@ -11,4 +11,31 @@ public void testAdd(){ public void testMultiply(){ Assert.assertEquals(cal.multiply(10, 20), 200); } + Properties prop = new Properties(); + OutputStream output = null; + + try { + + output = new FileOutputStream("config.properties"); + + // set the properties value + prop.setProperty("database", "localhost"); + prop.setProperty("dbuser", "hari"); + prop.setProperty("dbpassword", "password"); + + // save properties to project root folder + prop.store(output, null); + + } catch (IOException io) { + io.printStackTrace(); + } finally { + if (output != null) { + try { + output.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + } } From c4a4ba22b21011570378604df52d0eab24106e5c Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 11:31:09 +0530 Subject: [PATCH 005/136] Update CalculatorTest.java --- .../myweb/controller/CalculatorTest.java | 64 +++++++++++-------- 1 file changed, 38 insertions(+), 26 deletions(-) diff --git a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java index 532f2c9..76150c1 100755 --- a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java +++ b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java @@ -1,41 +1,53 @@ package in.javahome.myweb.controller; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.Properties; import junit.framework.Assert; import junit.framework.TestCase; public class CalculatorTest extends TestCase { Calculator cal = new Calculator(); - public void testAdd(){ + + public void testAdd() { Assert.assertEquals(cal.add(10, 20), 30); } - public void testMultiply(){ + + public void testMultiply() { Assert.assertEquals(cal.multiply(10, 20), 200); } - Properties prop = new Properties(); - OutputStream output = null; - - try { - - output = new FileOutputStream("config.properties"); - - // set the properties value - prop.setProperty("database", "localhost"); - prop.setProperty("dbuser", "hari"); - prop.setProperty("dbpassword", "password"); - // save properties to project root folder - prop.store(output, null); - - } catch (IOException io) { - io.printStackTrace(); - } finally { - if (output != null) { - try { - output.close(); - } catch (IOException e) { - e.printStackTrace(); - } + Properties prop = new Properties(); + OutputStream output = null; + + try + { + + output = new FileOutputStream("config.properties"); + + // set the properties value + prop.setProperty("database", "localhost"); + prop.setProperty("dbuser", "hari"); + prop.setProperty("dbpassword", "password"); + + // save properties to project root folder + prop.store(output, null); + + }catch( + IOException io) + { + io.printStackTrace(); + }finally + { + if (output != null) { + try { + output.close(); + } catch (IOException e) { + e.printStackTrace(); } - } + + } +} } From 3db8ad51de38bdea81991ce70a1c7d53f31f1572 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 11:34:29 +0530 Subject: [PATCH 006/136] Update CalculatorTest.java --- .../myweb/controller/CalculatorTest.java | 68 +++++++++---------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java index 76150c1..16a93d6 100755 --- a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java +++ b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java @@ -1,4 +1,6 @@ package in.javahome.myweb.controller; + + import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; @@ -11,43 +13,41 @@ public class CalculatorTest extends TestCase { Calculator cal = new Calculator(); public void testAdd() { - Assert.assertEquals(cal.add(10, 20), 30); + Properties prop = new Properties(); + + OutputStream output = null; + + try + { + + output = new FileOutputStream("config.properties"); + + // set the properties value + prop.setProperty("database", "localhost"); + prop.setProperty("dbuser", "hari"); + prop.setProperty("dbpassword", "password"); + + // save properties to project root folder + prop.store(output, null); + + }catch( + IOException io) + { + io.printStackTrace(); + }finally + { + if (output != null) { + try { + output.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + } } public void testMultiply() { Assert.assertEquals(cal.multiply(10, 20), 200); } - - Properties prop = new Properties(); - OutputStream output = null; - - try - { - - output = new FileOutputStream("config.properties"); - - // set the properties value - prop.setProperty("database", "localhost"); - prop.setProperty("dbuser", "hari"); - prop.setProperty("dbpassword", "password"); - - // save properties to project root folder - prop.store(output, null); - - }catch( - IOException io) - { - io.printStackTrace(); - }finally - { - if (output != null) { - try { - output.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - - } -} } From c3b4c4279f8af595ebc2ef5474db3a7ecd33a5f3 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 11:43:30 +0530 Subject: [PATCH 007/136] Update CalculatorTest.java --- src/test/java/in/javahome/myweb/controller/CalculatorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java index 16a93d6..140d8d2 100755 --- a/src/test/java/in/javahome/myweb/controller/CalculatorTest.java +++ b/src/test/java/in/javahome/myweb/controller/CalculatorTest.java @@ -20,7 +20,7 @@ public void testAdd() { try { - output = new FileOutputStream("config.properties"); + output = new FileOutputStream("../config.properties"); // set the properties value prop.setProperty("database", "localhost"); From 11c03ce90ee951d82163d99e93922490a5b959fb Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:15:37 +0530 Subject: [PATCH 008/136] Create scm_demo --- scm_demo | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 scm_demo diff --git a/scm_demo b/scm_demo new file mode 100644 index 0000000..af09415 --- /dev/null +++ b/scm_demo @@ -0,0 +1,4 @@ +node { + checkout scm + /* .. snip .. */ +} From 97496c977d5e3a5979244cd7d888ddea5e9cb962 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:18:36 +0530 Subject: [PATCH 009/136] Update scm_demo --- scm_demo | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scm_demo b/scm_demo index af09415..99eb73d 100644 --- a/scm_demo +++ b/scm_demo @@ -1,4 +1,11 @@ node { checkout scm /* .. snip .. */ + stage('Deploy') { + when { tag "release-*" } + steps { + echo 'Deploying only because this commit is tagged...' + sh 'make deploy' + } + } } From 9f7ae760e13e93c54c906f700fac44b787a3fc49 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:22:13 +0530 Subject: [PATCH 010/136] Update scm_demo --- scm_demo | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scm_demo b/scm_demo index 99eb73d..53e68ff 100644 --- a/scm_demo +++ b/scm_demo @@ -2,10 +2,7 @@ node { checkout scm /* .. snip .. */ stage('Deploy') { - when { tag "release-*" } - steps { - echo 'Deploying only because this commit is tagged...' - sh 'make deploy' - } + branchName = env.BRANCH_NAME + echo "$branchName" } } From 84c2ce22577033722f1091ce1282a677089ef4e2 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:23:30 +0530 Subject: [PATCH 011/136] Update scm_demo --- scm_demo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm_demo b/scm_demo index 53e68ff..0cc78a9 100644 --- a/scm_demo +++ b/scm_demo @@ -2,7 +2,7 @@ node { checkout scm /* .. snip .. */ stage('Deploy') { - branchName = env.BRANCH_NAME - echo "$branchName" + def branchName = env.BRANCH_NAME + echo "${branchName}" } } From 6eb6db9007d47e2d047807002be516250e2a6617 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:24:45 +0530 Subject: [PATCH 012/136] Update scm_demo --- scm_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index 0cc78a9..c280244 100644 --- a/scm_demo +++ b/scm_demo @@ -3,6 +3,6 @@ node { /* .. snip .. */ stage('Deploy') { def branchName = env.BRANCH_NAME - echo "${branchName}" + echo scm.branches } } From 1aefb6f889eea1ecc06898cc1a5ad71259f326a5 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:27:30 +0530 Subject: [PATCH 013/136] Update scm_demo --- scm_demo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index c280244..4bb6321 100644 --- a/scm_demo +++ b/scm_demo @@ -3,6 +3,8 @@ node { /* .. snip .. */ stage('Deploy') { def branchName = env.BRANCH_NAME - echo scm.branches + for(def branch: scm.branches){ + echo branch + } } } From a024f9f53baa29ccec56f0a446ddd1d66a074e1e Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:30:17 +0530 Subject: [PATCH 014/136] Update scm_demo --- scm_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index 4bb6321..7ad0c48 100644 --- a/scm_demo +++ b/scm_demo @@ -4,7 +4,7 @@ node { stage('Deploy') { def branchName = env.BRANCH_NAME for(def branch: scm.branches){ - echo branch + echo branch.name } } } From 550e92ad9bd4bf57889e113bf443f8369900b2c0 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:34:25 +0530 Subject: [PATCH 015/136] Update scm_demo --- scm_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index 7ad0c48..fecbc96 100644 --- a/scm_demo +++ b/scm_demo @@ -2,7 +2,7 @@ node { checkout scm /* .. snip .. */ stage('Deploy') { - def branchName = env.BRANCH_NAME + echo evn.BRANCH_NAME for(def branch: scm.branches){ echo branch.name } From 132a65481510f8cd6e2d81d6fac8873227c04c0e Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:35:28 +0530 Subject: [PATCH 016/136] Update scm_demo --- scm_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index fecbc96..d09bc35 100644 --- a/scm_demo +++ b/scm_demo @@ -2,7 +2,7 @@ node { checkout scm /* .. snip .. */ stage('Deploy') { - echo evn.BRANCH_NAME + echo "${evn.BRANCH_NAME}" for(def branch: scm.branches){ echo branch.name } From 463302b3032bb24100a4551be7ea408369c1f07e Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:37:56 +0530 Subject: [PATCH 017/136] Update scm_demo --- scm_demo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index d09bc35..c9da1cf 100644 --- a/scm_demo +++ b/scm_demo @@ -2,7 +2,7 @@ node { checkout scm /* .. snip .. */ stage('Deploy') { - echo "${evn.BRANCH_NAME}" + echo "${BRANCH_NAME}" for(def branch: scm.branches){ echo branch.name } From 34601b2d633ee6715ee6e3b0459eee6d583f1502 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:38:42 +0530 Subject: [PATCH 018/136] Update scm_demo --- scm_demo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm_demo b/scm_demo index c9da1cf..b31fe5a 100644 --- a/scm_demo +++ b/scm_demo @@ -1,8 +1,9 @@ node { checkout scm /* .. snip .. */ + echo "${env.BRANCH_NAME}" stage('Deploy') { - echo "${BRANCH_NAME}" + for(def branch: scm.branches){ echo branch.name } From b66a467e8190ff78e6eba8618cee9ad9ce7d2a75 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 1 Nov 2018 18:57:50 +0530 Subject: [PATCH 019/136] Update scm_demo --- scm_demo | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/scm_demo b/scm_demo index b31fe5a..8e05d6e 100644 --- a/scm_demo +++ b/scm_demo @@ -1,11 +1,6 @@ node { - checkout scm - /* .. snip .. */ - echo "${env.BRANCH_NAME}" - stage('Deploy') { - - for(def branch: scm.branches){ - echo branch.name - } - } + + def scmVars = checkout scm + def commitHash = scmVars.GIT_COMMIT + echo commitHash } From e8ef00c4922f1fb378d32e14e02c83b3b144984d Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 2 Nov 2018 08:05:20 +0530 Subject: [PATCH 020/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 02ec063..9a27c48 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Javahome App - 0.0.3

+

Javahome App - 0.0.4

From fb0f4b6921166e9f9596f8e5ed6ecafcb8e791de Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 2 Nov 2018 08:14:12 +0530 Subject: [PATCH 021/136] Update Calculator.java --- src/main/java/in/javahome/myweb/controller/Calculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/in/javahome/myweb/controller/Calculator.java b/src/main/java/in/javahome/myweb/controller/Calculator.java index 6eba58e..b7a1766 100755 --- a/src/main/java/in/javahome/myweb/controller/Calculator.java +++ b/src/main/java/in/javahome/myweb/controller/Calculator.java @@ -2,7 +2,7 @@ /* * */ -public class Calculator { +public class Calculator {{ /* * @param i * @param j From 0f481a49c4423e59a4fa866c7755199b1169c757 Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 2 Nov 2018 08:15:41 +0530 Subject: [PATCH 022/136] Update Calculator.java --- src/main/java/in/javahome/myweb/controller/Calculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/in/javahome/myweb/controller/Calculator.java b/src/main/java/in/javahome/myweb/controller/Calculator.java index b7a1766..6eba58e 100755 --- a/src/main/java/in/javahome/myweb/controller/Calculator.java +++ b/src/main/java/in/javahome/myweb/controller/Calculator.java @@ -2,7 +2,7 @@ /* * */ -public class Calculator {{ +public class Calculator { /* * @param i * @param j From f6a49ac995eddf01f96689304c4513c4aa0ef198 Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 2 Nov 2018 08:16:25 +0530 Subject: [PATCH 023/136] Update web.xml --- src/main/webapp/WEB-INF/web.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 9f88c1f..acf55d4 100755 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -2,6 +2,6 @@ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > - +Archetype Created Web Application From 18546cf03ea89cc13fa5f87322bb10183f0e856d Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 2 Nov 2018 08:25:50 +0530 Subject: [PATCH 024/136] Update web.xml --- src/main/webapp/WEB-INF/web.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index acf55d4..9f88c1f 100755 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -2,6 +2,6 @@ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > - Archetype Created Web Application From ddacad13632582f72d7578e5967f95e6d5195910 Mon Sep 17 00:00:00 2001 From: javahometech Date: Tue, 6 Nov 2018 08:31:17 +0530 Subject: [PATCH 025/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 9a27c48..224295d 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Javahome App - 0.0.4

+

Javahome App - 0.0.5

From 6b19cf6255af830aa94ffe1deb3f756bb7d5d8c6 Mon Sep 17 00:00:00 2001 From: javahometech Date: Mon, 12 Nov 2018 08:00:41 +0530 Subject: [PATCH 026/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 224295d..14d0238 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Javahome App - 0.0.5

+

Javahome App - 0.0.6

From c71863caa9e5fa203cc8b68a292ff270314e90d6 Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 16 Nov 2018 07:49:46 +0530 Subject: [PATCH 027/136] Create nov-2018-7am-devops --- nov-2018-7am-devops | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nov-2018-7am-devops diff --git a/nov-2018-7am-devops b/nov-2018-7am-devops new file mode 100644 index 0000000..31fe3e6 --- /dev/null +++ b/nov-2018-7am-devops @@ -0,0 +1,31 @@ +node{ + def mvnHome = tool name: 'maven-3', type: 'maven' + def mvn = "${mvnHome}/bin/mvn" + def tomcatUsr = 'ec2-user' + stage('Git Checkout'){ + git branch: 'master', + credentialsId: 'github', + url: 'https://github.com/javahometech/my-app' + } + + stage('Build'){ + sh "${mvn} clean package" + } + stage('deploy-to-dev'){ + sh 'mv target/myweb*.war target/myweb.war' + sshagent(['tomcat-dev']) { + sh "ssh -o StrictHostKeyChecking=no ${tomcatUsr}@172.31.12.253 /opt/tomcat8/bin/shutdown.sh" + sh "ssh ${tomcatUsr}@172.31.12.253 rm -rf /opt/tomcat8/webapps/myweb*" + sh "scp target/myweb.war ${tomcatUsr}@172.31.12.253:/opt/tomcat8/webapps/" + sh "ssh ${tomcatUsr}@172.31.12.253 /opt/tomcat8/bin/startup.sh" + mail bcc: '', + body: '''myweb app deployed to Dev + Thanks + DevOps''', + cc: '', + from: '', replyTo: '', + subject: 'myweb app deployed to Dev', + to: 'hari.kammana@gmail.com' + } + } +} From 6ecb98e4281beef41c743c78535a7233366db03d Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 18 Nov 2018 21:59:20 +0530 Subject: [PATCH 028/136] Update Dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1403e58..4cc4ca4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ FROM tomcat:8 # Take the war and copy to webapps of tomcat COPY target/*.war /usr/local/tomcat/webapps/ -# Added for jenkins demo From e0b32460fad796482d3942aac2d76c198928eff0 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 18 Nov 2018 22:00:36 +0530 Subject: [PATCH 029/136] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d4ac0cc..4db7c9a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,3 +21,5 @@ node{ tokenCredentialId: 'slack-demo' } } + + From ffc61080352abc55dee27f50f6ee7eca89f4f516 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 18 Nov 2018 22:12:04 +0530 Subject: [PATCH 030/136] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 4cc4ca4..485a9d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ FROM tomcat:8 # Take the war and copy to webapps of tomcat COPY target/*.war /usr/local/tomcat/webapps/ +# Testing Jenkins webhook From 54b4fdc1b07ea3eaae66bc2dbad8904a3439ef69 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sun, 18 Nov 2018 22:15:23 +0530 Subject: [PATCH 031/136] Update Dockerfile --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 485a9d1..4cc4ca4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,3 @@ FROM tomcat:8 # Take the war and copy to webapps of tomcat COPY target/*.war /usr/local/tomcat/webapps/ -# Testing Jenkins webhook From 2f29e54e35aab649ed33197c6d7751d36f6e5332 Mon Sep 17 00:00:00 2001 From: javahometech Date: Wed, 5 Dec 2018 08:32:11 +0530 Subject: [PATCH 032/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 14d0238..c4852a6 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Javahome App - 0.0.6

+

Javahome App - 0.0.5 - Deployed in Swarm

From 4f4e0e615e875b9ffaf28e08f470af4c5e3b0a22 Mon Sep 17 00:00:00 2001 From: javahometech Date: Wed, 5 Dec 2018 08:32:35 +0530 Subject: [PATCH 033/136] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9b05e10..15087d8 100755 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ in.javahome myweb war - 0.0.4 + 0.0.5 my-app http://maven.apache.org From 50d6579cf22b38c01d68c93a7c5dcb837dda41ad Mon Sep 17 00:00:00 2001 From: javahometech Date: Wed, 5 Dec 2018 08:39:21 +0530 Subject: [PATCH 034/136] Create docker-swarm-ci-cd --- docker-swarm-ci-cd | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docker-swarm-ci-cd diff --git a/docker-swarm-ci-cd b/docker-swarm-ci-cd new file mode 100644 index 0000000..61c2774 --- /dev/null +++ b/docker-swarm-ci-cd @@ -0,0 +1,41 @@ +node{ + def pom = readMavenPom file: 'pom.xml' + def version = pom.version + def nexus_tag = "172.31.24.222:8083/myweb:${version}" + def mvnHome = tool name: 'maven-3', type: 'maven' + def mvn = "${mvnHome}/bin/mvn" + stage('SCM Checkout'){ + git 'https://github.com/javahometech/my-app' + } + stage('Maven Build'){ + sh "${mvn} clean package" + sh 'mv target/myweb*.war target/myweb.war' + } + + stage('Docker Build'){ + + sh "docker build -t ${nexus_tag} ." + } + + stage('Push to Nexus'){ + sh "docker login 172.31.24.222:8083 -u admin -p admin123" + sh "docker push ${nexus_tag}" + } + + stage('Deploy to swarm'){ + try{ + def service = "docker service create -d -p 90:8080 --replicas=7 --name=myweb ${nexus_tag}" + sshagent (credentials: ['docker-swarm-manager']) { + def svs = "ec2-user@13.233.223.243 ${service}" + sh "ssh -o StrictHostKeyChecking=no ${svs}" + } + }catch(e){ + def service = "docker service update --image=${nexus_tag} myweb" + sshagent (credentials: ['docker-swarm-manager']) { + def svs = "ec2-user@13.233.223.243 ${service}" + sh "ssh -o StrictHostKeyChecking=no ${svs}" + + } + } + } +} From 8856957e627c611d5937de10dcd3e0a1493b7b58 Mon Sep 17 00:00:00 2001 From: javahometech Date: Mon, 17 Dec 2018 19:14:57 +0530 Subject: [PATCH 035/136] Update pom.xml --- pom.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pom.xml b/pom.xml index 15087d8..663a858 100755 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,12 @@ http://maven.apache.org + + org.apache.poi + poi + 3.7 + + javax.servlet javax.servlet-api From d2486233ddc88edf9f8018842e79351347935562 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 20 Dec 2018 08:18:40 +0530 Subject: [PATCH 036/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4db7c9a..b8aa1f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node{ git 'https://github.com/javahometech/my-app' } stage('Compile-Package'){ - // Get maven home path + def mvnHome = tool name: 'maven-3', type: 'maven' sh "${mvnHome}/bin/mvn package" } From da17df9fd66d710b94f595e4dfd807387ed0cf98 Mon Sep 17 00:00:00 2001 From: javahometech Date: Thu, 20 Dec 2018 08:19:24 +0530 Subject: [PATCH 037/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b8aa1f1..ed1bb2e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node{ + node{ stage('SCM Checkout'){ git 'https://github.com/javahometech/my-app' } From 8d77a884bd831942003629f83dba8ac8ab6cc94a Mon Sep 17 00:00:00 2001 From: javahometech Date: Fri, 21 Dec 2018 07:34:44 +0530 Subject: [PATCH 038/136] Update Calculator.java --- src/main/java/in/javahome/myweb/controller/Calculator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/in/javahome/myweb/controller/Calculator.java b/src/main/java/in/javahome/myweb/controller/Calculator.java index 6eba58e..06fa370 100755 --- a/src/main/java/in/javahome/myweb/controller/Calculator.java +++ b/src/main/java/in/javahome/myweb/controller/Calculator.java @@ -9,6 +9,8 @@ public class Calculator { * @return int */ public int add(int i, int j){ + String s = null; + s.toString(); return i+j; } public int multiply(int i, int j){ From 87558d7f87a639f254c8f20045a4bdf3efdbb375 Mon Sep 17 00:00:00 2001 From: javahometech Date: Wed, 16 Jan 2019 18:31:06 +0530 Subject: [PATCH 039/136] Update function-demo --- function-demo | 1 + 1 file changed, 1 insertion(+) diff --git a/function-demo b/function-demo index 3869d26..60dc045 100644 --- a/function-demo +++ b/function-demo @@ -1,3 +1,4 @@ +// Added for demo node{ stage('SCM Checkout'){ git 'https://github.com/javahometech/my-app' From 6bf0055e9ed9039385be75588d5a01fe34253908 Mon Sep 17 00:00:00 2001 From: javahometech Date: Wed, 16 Jan 2019 18:55:24 +0530 Subject: [PATCH 040/136] Update pom.xml --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index 663a858..0dbbed8 100755 --- a/pom.xml +++ b/pom.xml @@ -6,6 +6,8 @@ war 0.0.5 my-app + + http://maven.apache.org From 3e6bb7769e9bfa02ac2b128c41bff0fc077f7c77 Mon Sep 17 00:00:00 2001 From: javahometech Date: Sat, 19 Jan 2019 18:29:35 +0530 Subject: [PATCH 041/136] Update deploy-to-tomcat --- deploy-to-tomcat | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/deploy-to-tomcat b/deploy-to-tomcat index 283046e..62063a9 100644 --- a/deploy-to-tomcat +++ b/deploy-to-tomcat @@ -1,12 +1,26 @@ node{ - + def tomcatIp = '172.31.14.131' + def tomcatUser = 'ec2-user' + def stopTomcat = "ssh ${tomcatUser}@${tomcatIp} /opt/tomcat8/bin/shutdown.sh" + def startTomcat = "ssh ${tomcatUser}@${tomcatIp} /opt/tomcat8/bin/startup.sh" + def copyWar = "scp -o StrictHostKeyChecking=no target/myweb.war ${tomcatUser}@${tomcatIp}:/opt/tomcat8/webapps/" stage('SCM Checkout'){ - git 'https://github.com/javahometech/my-app' + git branch: 'master', + credentialsId: 'javahometech', + url: 'https://github.com/javahometech/myweb' + } + stage('Maven Build'){ + def mvnHome = tool name: 'maven3', type: 'maven' + sh "${mvnHome}/bin/mvn clean package" + } + + stage('Deploy Dev'){ + sh 'mv target/myweb*.war target/myweb.war' + + sshagent(['tomcat-dev']) { + sh "${stopTomcat}" + sh "${copyWar}" + sh "${startTomcat}" + } } - stage('Compile-Package'){ - // Get maven home path - def mvnHome = tool name: 'maven-3', type: 'maven' - sh "${mvnHome}/bin/mvn package" - } - } From 0611b4bac2ad8d508af561336057ae7c65b25537 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 20:17:48 +0530 Subject: [PATCH 042/136] removed slack notification --- Jenkinsfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ed1bb2e..e244bea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,15 +10,7 @@ stage('Email Notification'){ mail bcc: '', body: '''Hi Welcome to jenkins email alerts Thanks - Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'hari.kammana@gmail.com' - } - stage('Slack Notification'){ - slackSend baseUrl: 'https://hooks.slack.com/services/', - channel: '#jenkins-pipeline-demo', - color: 'good', - message: 'Welcome to Jenkins, Slack!', - teamDomain: 'javahomecloud', - tokenCredentialId: 'slack-demo' + Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanirlearn@gmail.com' } } From f779649cb598bb5b3bfa7394451e1264c57c0e84 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 20:20:58 +0530 Subject: [PATCH 043/136] commit git changes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e244bea..7944be0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ node{ stage('SCM Checkout'){ - git 'https://github.com/javahometech/my-app' + git 'https://github.com/prabaharan0312126/starter-web' } stage('Compile-Package'){ From 342faf8401c3b30c9862af00965da21f79ab9127 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 20:23:16 +0530 Subject: [PATCH 044/136] update jenkins file --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7944be0..7b7dd3f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ node{ stage('SCM Checkout'){ - git 'https://github.com/prabaharan0312126/starter-web' + git 'https://github.com/prabaharan0312126/my-app.git' } stage('Compile-Package'){ From 023da77986307390f333405553551dffea50ff70 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 20:26:12 +0530 Subject: [PATCH 045/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7b7dd3f..805f2fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ } stage('Compile-Package'){ - def mvnHome = tool name: 'maven-3', type: 'maven' + def mvnHome = tool name: 'maven3', type: 'maven' sh "${mvnHome}/bin/mvn package" } stage('Email Notification'){ From ed9df2c39ab5fd1e357b36c452a37f7618e06861 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 20:30:07 +0530 Subject: [PATCH 046/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 805f2fc..33899ed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ stage('Email Notification'){ mail bcc: '', body: '''Hi Welcome to jenkins email alerts Thanks - Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanirlearn@gmail.com' + Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanitlearn@gmail.com' } } From 2cb1c4da2f26b7cecc5755f9f541039d460fe4fe Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 22:21:03 +0530 Subject: [PATCH 047/136] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 33899ed..75ad795 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,9 +8,9 @@ sh "${mvnHome}/bin/mvn package" } stage('Email Notification'){ - mail bcc: '', body: '''Hi Welcome to jenkins email alerts + mail bcc: '', body: '''Build is done Thanks - Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanitlearn@gmail.com' + prabha''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanitlearn@gmail.com' } } From 21b1a2f1aaca21fe105d9c2a8f440fd9fb242e6b Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 22:23:14 +0530 Subject: [PATCH 048/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75ad795..46a015e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ sh "${mvnHome}/bin/mvn package" } stage('Email Notification'){ - mail bcc: '', body: '''Build is done + mail bcc: '', body: '''dummy Build is done Thanks prabha''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanitlearn@gmail.com' } From 8def55de527b66c4792e75bcf247f4fb32ea1024 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Sun, 17 Feb 2019 23:04:28 +0530 Subject: [PATCH 049/136] docker change --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 46a015e..7af0f3b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,9 @@ def mvnHome = tool name: 'maven3', type: 'maven' sh "${mvnHome}/bin/mvn package" } + stage('Build Docker Imager'){ + sh 'docker build -t prabaharanitlearn/myweb:0.0.2 .' + } stage('Email Notification'){ mail bcc: '', body: '''dummy Build is done Thanks From 72811751ce840bf08844a279cf1beee850c2410d Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 18 Feb 2019 00:04:56 +0530 Subject: [PATCH 050/136] Update Jenkinsfile --- Jenkinsfile | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7af0f3b..093ff56 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,30 @@ - node{ +node{ stage('SCM Checkout'){ git 'https://github.com/prabaharan0312126/my-app.git' } stage('Compile-Package'){ def mvnHome = tool name: 'maven3', type: 'maven' - sh "${mvnHome}/bin/mvn package" + sh "${mvnHome}/bin/mvn clean package" + sh 'mv target/myweb*.war target/newapp.war' } stage('Build Docker Imager'){ sh 'docker build -t prabaharanitlearn/myweb:0.0.2 .' } - stage('Email Notification'){ - mail bcc: '', body: '''dummy Build is done - Thanks - prabha''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'prabaharanitlearn@gmail.com' + stage('Docker Image Push'){ + withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { + sh "docker login -u prabaharanitlearn -p ${dockerPassword}" + } + sh 'docker push prabaharanitlearn/myweb:0.0.2' + } + stage('Remove Previous Container'){ + try{ + sh 'docker rm -f tomcattest' + }catch(error){ + // do nothing if there is an exception + } + stage('Docker deployment'){ + sh 'docker run -d -p 8090:8080 --name tomcattest prabaharanitlearn/myweb:0.0.2' } -} - + } From 9a5860faaf5f0d5ccf42adabd103b27ad4b23fa4 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 18 Feb 2019 00:05:15 +0530 Subject: [PATCH 051/136] Update Jenkinsfile From 4735d47beaf91c424ab639ffedb80c562606c608 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 18 Feb 2019 00:08:31 +0530 Subject: [PATCH 052/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index c4852a6..8c42763 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Javahome App - 0.0.5 - Deployed in Swarm

+

Hi this is my first work

From 857bc473d64d50be48c09c684b6386dd9c190f10 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:58:09 -0600 Subject: [PATCH 053/136] Delete nov-2018-7am-devops --- nov-2018-7am-devops | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 nov-2018-7am-devops diff --git a/nov-2018-7am-devops b/nov-2018-7am-devops deleted file mode 100644 index 31fe3e6..0000000 --- a/nov-2018-7am-devops +++ /dev/null @@ -1,31 +0,0 @@ -node{ - def mvnHome = tool name: 'maven-3', type: 'maven' - def mvn = "${mvnHome}/bin/mvn" - def tomcatUsr = 'ec2-user' - stage('Git Checkout'){ - git branch: 'master', - credentialsId: 'github', - url: 'https://github.com/javahometech/my-app' - } - - stage('Build'){ - sh "${mvn} clean package" - } - stage('deploy-to-dev'){ - sh 'mv target/myweb*.war target/myweb.war' - sshagent(['tomcat-dev']) { - sh "ssh -o StrictHostKeyChecking=no ${tomcatUsr}@172.31.12.253 /opt/tomcat8/bin/shutdown.sh" - sh "ssh ${tomcatUsr}@172.31.12.253 rm -rf /opt/tomcat8/webapps/myweb*" - sh "scp target/myweb.war ${tomcatUsr}@172.31.12.253:/opt/tomcat8/webapps/" - sh "ssh ${tomcatUsr}@172.31.12.253 /opt/tomcat8/bin/startup.sh" - mail bcc: '', - body: '''myweb app deployed to Dev - Thanks - DevOps''', - cc: '', - from: '', replyTo: '', - subject: 'myweb app deployed to Dev', - to: 'hari.kammana@gmail.com' - } - } -} From 2338a2afe41949bab5c34430d3527ca5158ab8ed Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:58:21 -0600 Subject: [PATCH 054/136] Delete sonarqube-analysis --- sonarqube-analysis | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 sonarqube-analysis diff --git a/sonarqube-analysis b/sonarqube-analysis deleted file mode 100644 index 5c0c50a..0000000 --- a/sonarqube-analysis +++ /dev/null @@ -1,32 +0,0 @@ -node{ - stage('SCM Checkout'){ - git 'https://github.com/javahometech/my-app' - } - stage('Compile-Package'){ - // Get maven home path - def mvnHome = tool name: 'maven-3', type: 'maven' - sh "${mvnHome}/bin/mvn package" - } - - stage('SonarQube Analysis') { - def mvnHome = tool name: 'maven-3', type: 'maven' - withSonarQubeEnv('sonar-6') { - sh "${mvnHome}/bin/mvn sonar:sonar" - } - } - - stage('Email Notification'){ - mail bcc: '', body: '''Hi Welcome to jenkins email alerts - Thanks - Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'hari.kammana@gmail.com' - } - stage('Slack Notification'){ - slackSend baseUrl: 'https://hooks.slack.com/services/', - channel: '#jenkins-pipeline-demo', - color: 'good', - message: 'Welcome to Jenkins, Slack!', - teamDomain: 'javahomecloud', - tokenCredentialId: 'slack-demo' - } - -} From 1ecee78ee20ea5f96fbf58a0cc2001896e742d84 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:59:31 -0600 Subject: [PATCH 055/136] Delete sonar-status-check --- sonar-status-check | 47 ---------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 sonar-status-check diff --git a/sonar-status-check b/sonar-status-check deleted file mode 100644 index 8f82dc4..0000000 --- a/sonar-status-check +++ /dev/null @@ -1,47 +0,0 @@ -node{ - stage('SCM Checkout'){ - git 'https://github.com/javahometech/my-app' - } - stage('Compile-Package'){ - // Get maven home path - def mvnHome = tool name: 'maven-3', type: 'maven' - sh "${mvnHome}/bin/mvn package" - } - - stage('SonarQube Analysis') { - def mvnHome = tool name: 'maven-3', type: 'maven' - withSonarQubeEnv('sonar-6') { - sh "${mvnHome}/bin/mvn sonar:sonar" - } - } - - stage("Quality Gate Statuc Check"){ - timeout(time: 1, unit: 'HOURS') { - def qg = waitForQualityGate() - if (qg.status != 'OK') { - slackSend baseUrl: 'https://hooks.slack.com/services/', - channel: '#jenkins-pipeline-demo', - color: 'danger', - message: 'SonarQube Analysis Failed', - teamDomain: 'javahomecloud', - tokenCredentialId: 'slack-demo' - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } - - stage('Email Notification'){ - mail bcc: '', body: '''Hi Welcome to jenkins email alerts - Thanks - Hari''', cc: '', from: '', replyTo: '', subject: 'Jenkins Job', to: 'hari.kammana@gmail.com' - } - stage('Slack Notification'){ - slackSend baseUrl: 'https://hooks.slack.com/services/', - channel: '#jenkins-pipeline-demo', - color: 'good', - message: 'Welcome to Jenkins, Slack!', - teamDomain: 'javahomecloud', - tokenCredentialId: 'slack-demo' - } - -} From f927515adc2c4d08f7d15ac89e230335f69ee749 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:58:41 -0600 Subject: [PATCH 056/136] Delete scm_demo --- scm_demo | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 scm_demo diff --git a/scm_demo b/scm_demo deleted file mode 100644 index 8e05d6e..0000000 --- a/scm_demo +++ /dev/null @@ -1,6 +0,0 @@ -node { - - def scmVars = checkout scm - def commitHash = scmVars.GIT_COMMIT - echo commitHash -} From 6d8da180c081d66bd4e46206deb3cca3a8911079 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:58:55 -0600 Subject: [PATCH 057/136] Delete jenkins-pipeline-9am-sep-2018 --- jenkins-pipeline-9am-sep-2018 | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 jenkins-pipeline-9am-sep-2018 diff --git a/jenkins-pipeline-9am-sep-2018 b/jenkins-pipeline-9am-sep-2018 deleted file mode 100644 index 8c96ff7..0000000 --- a/jenkins-pipeline-9am-sep-2018 +++ /dev/null @@ -1,32 +0,0 @@ -try{ - node{ - stage('Git Checkout'){ - git credentialsId: 'github', - url: 'https://github.com/javahometech/my-app', - branch: "${params.gitBranch}" - } - - stage('Maven Build'){ - sh 'mvn clean package' - } - stage('Deploy to Dev'){ - sh 'mv target/*.war target/myweb.war' - sshagent(['tomcat-dev']) { - sh 'ssh ec2-user@172.31.17.196 rm -rf /opt/tomcat8/webapps/myweb*' - sh 'scp target/myweb.war ec2-user@172.31.17.196:/opt/tomcat8/webapps/' - sh 'ssh ec2-user@172.31.17.196 sudo service tomcat restart' - } - slackSend channel: '#devops-2', - color: 'good', - message: "Job - ${env.JOB_NAME}, Completed successfully Build URL is ${env.BUILD_URL}" - - - } -} - -}catch(error){ - slackSend channel: '#devops-2', - color: 'danger', - message: "Job - ${env.JOB_NAME}, Failed, Build URL is ${env.BUILD_URL}" - error 'Something wrong' -} From 4c15d348c33998cfd9f8451a94168e62662af9b8 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 19:59:13 -0600 Subject: [PATCH 058/136] Delete docker-ci-cd-youtube --- docker-ci-cd-youtube | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 docker-ci-cd-youtube diff --git a/docker-ci-cd-youtube b/docker-ci-cd-youtube deleted file mode 100644 index 1d7d648..0000000 --- a/docker-ci-cd-youtube +++ /dev/null @@ -1,25 +0,0 @@ -node{ - stage('SCM Checkout'){ - git credentialsId: 'git-creds', url: 'https://github.com/javahometech/my-app' - } - stage('Mvn Package'){ - def mvnHome = tool name: 'maven-3', type: 'maven' - def mvnCMD = "${mvnHome}/bin/mvn" - sh "${mvnCMD} clean package" - } - stage('Build Docker Image'){ - sh 'docker build -t kammana/my-app:2.0.0 .' - } - stage('Push Docker Image'){ - withCredentials([string(credentialsId: 'docker-pwd', variable: 'dockerHubPwd')]) { - sh "docker login -u kammana -p ${dockerHubPwd}" - } - sh 'docker push kammana/my-app:2.0.0' - } - stage('Run Container on Dev Server'){ - def dockerRun = 'docker run -p 8080:8080 -d --name my-app kammana/my-app:2.0.0' - sshagent(['dev-server']) { - sh "ssh -o StrictHostKeyChecking=no ec2-user@172.31.18.198 ${dockerRun}" - } - } -} From 98837b160a3c36ad1433ab9bea97d3afc71c2ac5 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 20:00:31 -0600 Subject: [PATCH 059/136] Delete pipeline-docker-ci-cd --- pipeline-docker-ci-cd | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 pipeline-docker-ci-cd diff --git a/pipeline-docker-ci-cd b/pipeline-docker-ci-cd deleted file mode 100644 index 0b5800b..0000000 --- a/pipeline-docker-ci-cd +++ /dev/null @@ -1,41 +0,0 @@ - - -node{ - stage('Git Checkout'){ - git url: 'https://github.com/javahometech/my-app', - branch:'master' - } - stage('MVN Package'){ - def mvnHome = tool name: 'maven-3', type: 'maven' - sh "${mvnHome}/bin/mvn clean package" - } - stage('Build Docker Image'){ - sh 'docker build -t kammana/my-app:0.0.1 .' - } - - stage('Upload Image to DockerHub'){ - withCredentials([string(credentialsId: 'docker-hub', variable: 'password')]) { - sh "docker login -u kammana -p ${password}" - } - sh 'docker push kammana/my-app:0.0.1' - } - stage('Remove Old Containers'){ - sshagent(['my-app-dev']) { - try{ - def sshCmd = 'ssh -o StrictHostKeyChecking=no ec2-user@172.31.18.198' - def dockerRM = 'docker rm -f my-app' - sh "${sshCmd} ${dockerRM}" - }catch(error){ - - } - } - } - stage('Deploy-Dev'){ - sshagent(['my-app-dev']) { - input 'Deploy to Dev?' - def sshCmd = 'ssh -o StrictHostKeyChecking=no ec2-user@172.31.18.198' - def dockerRun = 'docker run -d -p 8080:8080 --name my-app kammana/my-app:0.0.1' - sh "${sshCmd} ${dockerRun}" - } - } -} From 9c1b17e14a8ccdcfd307741dde9c06497096109e Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 20:01:32 -0600 Subject: [PATCH 060/136] Delete docker-ci-cd --- docker-ci-cd | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 docker-ci-cd diff --git a/docker-ci-cd b/docker-ci-cd deleted file mode 100644 index a4d09c3..0000000 --- a/docker-ci-cd +++ /dev/null @@ -1,39 +0,0 @@ -node{ - stage('Git Checkout'){ - git 'https://github.com/javahometech/my-app' - } - stage('Maven Package'){ - sh 'mvn clean package' - sh 'mv target/myweb*.war target/myweb.war' - } - - stage('Build Docker Imager'){ - sh 'docker build -t kammana/myweb:0.0.1 .' - } - - stage('Push to Docker Hub'){ - - withCredentials([string(credentialsId: 'github-pwd', variable: 'dockerHubPwd')]) { - sh "docker login -u kammana -p ${dockerHubPwd}" - } - sh 'docker push kammana/myweb:0.0.1' - } - stage('Remove Previous Container'){ - try{ - def dockerRm = 'docker rm -f myweb' - sshagent(['docker-dev']) { - sh "ssh -o StrictHostKeyChecking=no ec2-user@172.31.17.196 ${dockerRm}" - } - }catch(error){ - // do nothing if there is an exception - } - } - stage('Deploy to Dev Environment'){ - def dockerRun = 'docker run -d -p 8080:8080 --name myweb kammana/myweb:0.0.1 ' - sshagent(['docker-dev']) { - sh "ssh -o StrictHostKeyChecking=no ec2-user@172.31.17.196 ${dockerRun}" - } - - } - -} From f167225c99ed5da0f7ede13ebe887a4f0d8b88a1 Mon Sep 17 00:00:00 2001 From: prabaharan0312126 Date: Mon, 25 Feb 2019 20:02:17 -0600 Subject: [PATCH 061/136] Delete docker-swarm-ci-cd --- docker-swarm-ci-cd | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 docker-swarm-ci-cd diff --git a/docker-swarm-ci-cd b/docker-swarm-ci-cd deleted file mode 100644 index 61c2774..0000000 --- a/docker-swarm-ci-cd +++ /dev/null @@ -1,41 +0,0 @@ -node{ - def pom = readMavenPom file: 'pom.xml' - def version = pom.version - def nexus_tag = "172.31.24.222:8083/myweb:${version}" - def mvnHome = tool name: 'maven-3', type: 'maven' - def mvn = "${mvnHome}/bin/mvn" - stage('SCM Checkout'){ - git 'https://github.com/javahometech/my-app' - } - stage('Maven Build'){ - sh "${mvn} clean package" - sh 'mv target/myweb*.war target/myweb.war' - } - - stage('Docker Build'){ - - sh "docker build -t ${nexus_tag} ." - } - - stage('Push to Nexus'){ - sh "docker login 172.31.24.222:8083 -u admin -p admin123" - sh "docker push ${nexus_tag}" - } - - stage('Deploy to swarm'){ - try{ - def service = "docker service create -d -p 90:8080 --replicas=7 --name=myweb ${nexus_tag}" - sshagent (credentials: ['docker-swarm-manager']) { - def svs = "ec2-user@13.233.223.243 ${service}" - sh "ssh -o StrictHostKeyChecking=no ${svs}" - } - }catch(e){ - def service = "docker service update --image=${nexus_tag} myweb" - sshagent (credentials: ['docker-swarm-manager']) { - def svs = "ec2-user@13.233.223.243 ${service}" - sh "ssh -o StrictHostKeyChecking=no ${svs}" - - } - } - } -} From a195647bf1a974a6a22fbb77ecfb0e335331d503 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Tue, 26 Feb 2019 11:12:48 +0530 Subject: [PATCH 062/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 8c42763..174ce8b 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Hi this is my first work

+

Hi this is my first project work

From 75b7ab69f6510b68a12487afd4f3797c0a5681ee Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:52:33 +0530 Subject: [PATCH 063/136] Update pom.xml --- pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pom.xml b/pom.xml index 0dbbed8..ad36535 100755 --- a/pom.xml +++ b/pom.xml @@ -60,6 +60,11 @@ maven-surefire-plugin 2.19 + + org.codehaus.mojo + sonar-maven-plugin + 2.6 + From 28ad0a799bac3a6e9f2bcd34279f10774fa058d1 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:58:54 +0530 Subject: [PATCH 064/136] Update pom.xml --- pom.xml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pom.xml b/pom.xml index ad36535..0dbbed8 100755 --- a/pom.xml +++ b/pom.xml @@ -60,11 +60,6 @@ maven-surefire-plugin 2.19 - - org.codehaus.mojo - sonar-maven-plugin - 2.6 - From f0b617dac6b7099cd1e8db3266862a74c89f169a Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 28 Feb 2019 12:22:38 +0530 Subject: [PATCH 065/136] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0dbbed8..c80cdd1 100755 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,8 @@ maven-compiler-plugin 3.6.1 - 1.7 - 1.7 + 1.8 + 1.8 From 652058cac166e38b73a8663f545f224b4c4e89e6 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 28 Feb 2019 12:24:16 +0530 Subject: [PATCH 066/136] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c80cdd1..0dbbed8 100755 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,8 @@ maven-compiler-plugin 3.6.1 - 1.8 - 1.8 + 1.7 + 1.7 From 9991c0d53112903408b5bc7f3475292b4a723721 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 28 Feb 2019 12:32:29 +0530 Subject: [PATCH 067/136] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 0dbbed8..c80cdd1 100755 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,8 @@ maven-compiler-plugin 3.6.1 - 1.7 - 1.7 + 1.8 + 1.8 From 336712d97968b0b083424f012da4b8775131a773 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 28 Feb 2019 12:34:09 +0530 Subject: [PATCH 068/136] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index c80cdd1..0dbbed8 100755 --- a/pom.xml +++ b/pom.xml @@ -51,8 +51,8 @@ maven-compiler-plugin 3.6.1 - 1.8 - 1.8 + 1.7 + 1.7 From 9fee9225fdadfa61c972d4e0561c8d5ddbe4fa7f Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 1 Mar 2019 12:07:19 +0530 Subject: [PATCH 069/136] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4cc4ca4..3974f70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ FROM tomcat:8 # Take the war and copy to webapps of tomcat -COPY target/*.war /usr/local/tomcat/webapps/ +COPY target/newapp.war /usr/local/tomcat/webapps/ From ac644a3cfcc3432ee091739dca4c3d35b6117a83 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 1 Mar 2019 12:12:35 +0530 Subject: [PATCH 070/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 174ce8b..e3ddd1f 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Hi this is my first project work

+

Hi this is my first project test work

From 4b6124ccfe5cf6601d771d48d12264ad47bf058c Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 1 Mar 2019 12:14:23 +0530 Subject: [PATCH 071/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index e3ddd1f..d8a89ed 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Hi this is my first project test work

+

Hi this is my first project test1 work

From c055d26d31a914e3b8bd467c4b174c2624f419d4 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 1 Mar 2019 12:16:25 +0530 Subject: [PATCH 072/136] Update index.html --- src/main/webapp/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index d8a89ed..174ce8b 100755 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -11,7 +11,7 @@
-

Hi this is my first project test1 work

+

Hi this is my first project work

From 4464fed7570ec8e59f05d971b0df0827d674298d Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 7 Mar 2019 12:48:26 +0530 Subject: [PATCH 073/136] Update Jenkinsfile --- Jenkinsfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 093ff56..a4549c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,21 @@ node{ - stage('SCM Checkout'){ - git 'https://github.com/prabaharan0312126/my-app.git' + stage('GIT Checkout'){ + git 'https://github.com/damodaranj/my-app.git' } - stage('Compile-Package'){ + stage('Compile-Package using maven'){ def mvnHome = tool name: 'maven3', type: 'maven' sh "${mvnHome}/bin/mvn clean package" sh 'mv target/myweb*.war target/newapp.war' } stage('Build Docker Imager'){ - sh 'docker build -t prabaharanitlearn/myweb:0.0.2 .' + sh 'docker build -t damocharms/myweb:0.0.2 .' } stage('Docker Image Push'){ withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u prabaharanitlearn -p ${dockerPassword}" + sh "docker login -u damocharms -p ${dockerPassword}" } - sh 'docker push prabaharanitlearn/myweb:0.0.2' + sh 'docker push damocharms/myweb:0.0.2' } stage('Remove Previous Container'){ try{ @@ -24,7 +24,7 @@ node{ // do nothing if there is an exception } stage('Docker deployment'){ - sh 'docker run -d -p 8090:8080 --name tomcattest prabaharanitlearn/myweb:0.0.2' + sh 'docker run -d -p 8090:8080 --name tomcattest damocharms/myweb:0.0.2' } - +} } From b0ca360325050806893cafe7245b09f3f555223c Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 7 Mar 2019 12:52:27 +0530 Subject: [PATCH 074/136] Update Jenkinsfile --- Jenkinsfile | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a4549c3..c68bbc5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,21 @@ node{ - stage('GIT Checkout'){ - git 'https://github.com/damodaranj/my-app.git' + stage('SCM Checkout'){ + git 'https://github.com/prabaharan0312126/my-app.git' } - stage('Compile-Package using maven'){ + stage('Compile-Package'){ def mvnHome = tool name: 'maven3', type: 'maven' sh "${mvnHome}/bin/mvn clean package" sh 'mv target/myweb*.war target/newapp.war' } stage('Build Docker Imager'){ - sh 'docker build -t damocharms/myweb:0.0.2 .' + sh 'docker build -t prabaharanitlearn/myweb:0.0.2 .' } stage('Docker Image Push'){ withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u damocharms -p ${dockerPassword}" + sh "docker login -u prabaharanitlearn -p ${dockerPassword}" } - sh 'docker push damocharms/myweb:0.0.2' + sh 'docker push prabaharanitlearn/myweb:0.0.2' } stage('Remove Previous Container'){ try{ @@ -24,7 +24,14 @@ node{ // do nothing if there is an exception } stage('Docker deployment'){ - sh 'docker run -d -p 8090:8080 --name tomcattest damocharms/myweb:0.0.2' + sh 'docker run -d -p 8090:8080 --name tomcattest prabaharanitlearn/myweb:0.0.2' } } +stage('SonarQube Analysis') { + def mvnHome = tool name: 'maven3', type: 'maven' + withSonarQubeEnv('sonar') { + sh "${mvnHome}/bin/mvn sonar:sonar" + } + } + } From df67ffe34c3b77e95f6e6d1c4771b067cd18093d Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Mon, 11 Mar 2019 13:05:19 +0530 Subject: [PATCH 075/136] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c68bbc5..43ab0e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,13 +9,13 @@ node{ sh 'mv target/myweb*.war target/newapp.war' } stage('Build Docker Imager'){ - sh 'docker build -t prabaharanitlearn/myweb:0.0.2 .' + sh 'docker build -t damocharms/myweb:0.0.2 .' } stage('Docker Image Push'){ withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u prabaharanitlearn -p ${dockerPassword}" + sh "docker login -u damocharms -p ${dockerPassword}" } - sh 'docker push prabaharanitlearn/myweb:0.0.2' + sh 'docker push damocharms/myweb:0.0.2' } stage('Remove Previous Container'){ try{ @@ -24,7 +24,7 @@ node{ // do nothing if there is an exception } stage('Docker deployment'){ - sh 'docker run -d -p 8090:8080 --name tomcattest prabaharanitlearn/myweb:0.0.2' + sh 'docker run -d -p 8090:8080 --name tomcattest damocharms/myweb:0.0.2' } } stage('SonarQube Analysis') { From 93e98b2cacd71dcc490cc1262c94c1ac7c090b06 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Tue, 12 Mar 2019 11:05:57 +0530 Subject: [PATCH 076/136] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 43ab0e2..ce53685 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,6 @@ node{ stage('SCM Checkout'){ - git 'https://github.com/prabaharan0312126/my-app.git' + git 'https://github.com/damodaranj/my-app.git' } stage('Compile-Package'){ @@ -33,5 +33,4 @@ stage('SonarQube Analysis') { sh "${mvnHome}/bin/mvn sonar:sonar" } } - - } +} From 7aad8fd06d172718b8e61249d425cec92b030615 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Tue, 12 Mar 2019 11:08:04 +0530 Subject: [PATCH 077/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ce53685..3f5cb68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ node{ - stage('SCM Checkout'){ + stage('GIT Checkout'){ git 'https://github.com/damodaranj/my-app.git' } stage('Compile-Package'){ From 3fbb554f0367be14050e4429430a18295eda4c45 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Tue, 12 Mar 2019 11:09:17 +0530 Subject: [PATCH 078/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3f5cb68..4c01791 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ node{ - stage('GIT Checkout'){ + stage('GIT code Checkout'){ git 'https://github.com/damodaranj/my-app.git' } stage('Compile-Package'){ From f1f0ff2a388a005978163dffa905cfa7c6dc2fb5 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Tue, 12 Mar 2019 11:40:15 +0530 Subject: [PATCH 079/136] Update Jenkinsfile --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4c01791..f68774f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ node{ - stage('GIT code Checkout'){ + stage('SCM Checkout'){ git 'https://github.com/damodaranj/my-app.git' } stage('Compile-Package'){ @@ -14,8 +14,13 @@ node{ stage('Docker Image Push'){ withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { sh "docker login -u damocharms -p ${dockerPassword}" - } + } sh 'docker push damocharms/myweb:0.0.2' + } + stage('Nexus Image Push'){ + sh "docker login -u admin -p admin123 52.66.247.105:8050" + sh "docker tag damocharms/myweb:0.0.2 52.66.247.105:8050/damo:1.0.0" + sh 'docker push 52.66.247.105:8050/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -33,4 +38,5 @@ stage('SonarQube Analysis') { sh "${mvnHome}/bin/mvn sonar:sonar" } } -} + + } From c8e3ef2fdbf579630fa8e87637d3a4f89322cff0 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 15 Mar 2019 14:09:00 +0530 Subject: [PATCH 080/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f68774f..8066c8d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,4 +39,4 @@ stage('SonarQube Analysis') { } } - } +} From ef744d790b3842d13742820e204cc29313c46bb0 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 15 Mar 2019 14:10:38 +0530 Subject: [PATCH 081/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8066c8d..f68774f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,4 +39,4 @@ stage('SonarQube Analysis') { } } -} + } From 867174c978186b5a20ff2614baf7171d5a3c01ef Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Mon, 10 Jun 2019 19:05:43 +0530 Subject: [PATCH 082/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f68774f..8066c8d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,4 +39,4 @@ stage('SonarQube Analysis') { } } - } +} From 086c10221f5b14ae19cc851fee3977ca1f5072de Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 15 Jun 2019 17:04:25 +0530 Subject: [PATCH 083/136] Update Jenkinsfile --- Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8066c8d..fb070e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push damocharms/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 52.66.247.105:8050" - sh "docker tag damocharms/myweb:0.0.2 52.66.247.105:8050/damo:1.0.0" - sh 'docker push 52.66.247.105:8050/damo:1.0.0' + sh "docker login -u admin -p admin123 52.66.207.153:8085" + sh "docker tag damocharms/myweb:0.0.2 52.66.207.153:8085/damo:1.0.0" + sh 'docker push 52.66.207.153:8085/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,4 +39,5 @@ stage('SonarQube Analysis') { } } -} + } + From 9d12320db4a774679523be14b62c0a490ec18587 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 15 Jun 2019 17:05:22 +0530 Subject: [PATCH 084/136] Update Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb070e3..58df8e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,4 +40,3 @@ stage('SonarQube Analysis') { } } - From 73c4de640db1ae800c77b387b325da1631e8f3ed Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 15 Jun 2019 17:09:15 +0530 Subject: [PATCH 085/136] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 58df8e1..fb070e3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,3 +40,4 @@ stage('SonarQube Analysis') { } } + From 1e6c074498b67bfae72cf5aeed05e1433c8e47fa Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 8 Sep 2019 16:56:37 +0530 Subject: [PATCH 086/136] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb070e3..011bef1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push damocharms/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 52.66.207.153:8085" - sh "docker tag damocharms/myweb:0.0.2 52.66.207.153:8085/damo:1.0.0" - sh 'docker push 52.66.207.153:8085/damo:1.0.0' + sh "docker login -u admin -p admin123 13.127.145.196:8083" + sh "docker tag damocharms/myweb:0.0.2 13.127.145.196:8083/damo:1.0.0" + sh 'docker push 13.127.145.196:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -40,4 +40,3 @@ stage('SonarQube Analysis') { } } - From cdc1e0b15eed1c1e8554801df2b360f5a6a336c1 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 23 Nov 2019 14:57:36 +0530 Subject: [PATCH 087/136] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 011bef1..fcd4d45 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node{ git 'https://github.com/damodaranj/my-app.git' } stage('Compile-Package'){ - + def mvnHome = tool name: 'maven3', type: 'maven' sh "${mvnHome}/bin/mvn clean package" sh 'mv target/myweb*.war target/newapp.war' @@ -18,9 +18,9 @@ node{ sh 'docker push damocharms/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.127.145.196:8083" - sh "docker tag damocharms/myweb:0.0.2 13.127.145.196:8083/damo:1.0.0" - sh 'docker push 13.127.145.196:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.234.33.186:8083" + sh "docker tag damocharms/myweb:0.0.2 13.234.33.186:8083/damo:1.0.0" + sh 'docker push 13.234.33.186:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 693867e71ca02927bbc75134888d833acdbdb026 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 1 Dec 2019 16:07:45 +0530 Subject: [PATCH 088/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fcd4d45..1721acf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push damocharms/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.234.33.186:8083" - sh "docker tag damocharms/myweb:0.0.2 13.234.33.186:8083/damo:1.0.0" - sh 'docker push 13.234.33.186:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.6.36.180:8085" + sh "docker tag damocharms/myweb:0.0.2 3.6.36.180:8085/damo:1.0.0" + sh 'docker push 3.6.36.180:8085/damo:1.0.0' } stage('Remove Previous Container'){ try{ From aa2dd91f2d04e62e864d4036a97689dd2336932d Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jan 2020 13:24:02 +0530 Subject: [PATCH 089/136] Update Jenkinsfile --- Jenkinsfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1721acf..c36f447 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,18 +9,18 @@ node{ sh 'mv target/myweb*.war target/newapp.war' } stage('Build Docker Imager'){ - sh 'docker build -t damocharms/myweb:0.0.2 .' + sh 'docker build -t saidamo/myweb:0.0.2 .' } stage('Docker Image Push'){ withCredentials([string(credentialsId: 'dockerPass', variable: 'dockerPassword')]) { - sh "docker login -u damocharms -p ${dockerPassword}" + sh "docker login -u saidamo -p ${dockerPassword}" } - sh 'docker push damocharms/myweb:0.0.2' + sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.6.36.180:8085" - sh "docker tag damocharms/myweb:0.0.2 3.6.36.180:8085/damo:1.0.0" - sh 'docker push 3.6.36.180:8085/damo:1.0.0' + sh "docker login -u admin -p admin123 15.206.90.217:8083" + sh "docker tag saidamo/myweb:0.0.2 15.206.90.217:8083/damo:1.0.0" + sh 'docker push 15.206.90.217:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -29,7 +29,7 @@ node{ // do nothing if there is an exception } stage('Docker deployment'){ - sh 'docker run -d -p 8090:8080 --name tomcattest damocharms/myweb:0.0.2' + sh 'docker run -d -p 8090:8080 --name tomcattest saidamo/myweb:0.0.2' } } stage('SonarQube Analysis') { From 1356f342a0b250dae0637bd82d0a846d5e5ca68c Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jan 2020 13:25:47 +0530 Subject: [PATCH 090/136] Update Jenkinsfile From bd65eeeadac8903b32f6cc095324c9886929a260 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jan 2020 13:27:43 +0530 Subject: [PATCH 091/136] Update Jenkinsfile From d3c4546bdb3de4166854fceb4db8de9031cabf35 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jan 2020 13:28:38 +0530 Subject: [PATCH 092/136] Update Jenkinsfile From 88b5ccf3bb4e51b97ab8eab73d82504ad8b53588 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jan 2020 13:29:05 +0530 Subject: [PATCH 093/136] Update Jenkinsfile From ced9dce7e1a600336e837d8571dd0fb2c5c05f24 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 26 Jan 2020 15:16:15 +0530 Subject: [PATCH 094/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c36f447..9e2b874 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 15.206.90.217:8083" - sh "docker tag saidamo/myweb:0.0.2 15.206.90.217:8083/damo:1.0.0" - sh 'docker push 15.206.90.217:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 15.206.167.19:8083" + sh "docker tag saidamo/myweb:0.0.2 15.206.167.19:8083/damo:1.0.0" + sh 'docker push 15.206.167.19:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 6ca03c73d02063645d27c163efa25ec15fbce7fe Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 16 Feb 2020 14:23:40 +0530 Subject: [PATCH 095/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e2b874..e7bf5d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 15.206.167.19:8083" - sh "docker tag saidamo/myweb:0.0.2 15.206.167.19:8083/damo:1.0.0" - sh 'docker push 15.206.167.19:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.233.83.129:8083" + sh "docker tag saidamo/myweb:0.0.2 13.233.83.129:8083/damo:1.0.0" + sh 'docker push 13.233.83.129:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From f9ffe9868ef97c4cae4553d62a7b662f84aa8aa8 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 9 May 2020 11:17:05 +0530 Subject: [PATCH 096/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e7bf5d1..6d25351 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,9 +18,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.233.83.129:8083" - sh "docker tag saidamo/myweb:0.0.2 13.233.83.129:8083/damo:1.0.0" - sh 'docker push 13.233.83.129:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.234.118.69:8083" + sh "docker tag saidamo/myweb:0.0.2 13.234.118.69:8083/damo:1.0.0" + sh 'docker push 13.234.118.69:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From a21d1a54b0ce68be8f409c4412941f6259cd4148 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 9 May 2020 11:18:59 +0530 Subject: [PATCH 097/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6d25351..da248cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.234.118.69:8083" + sh "docker login -u admin -p admin123 13.234.118.68:8083" sh "docker tag saidamo/myweb:0.0.2 13.234.118.69:8083/damo:1.0.0" sh 'docker push 13.234.118.69:8083/damo:1.0.0' } From 7b1661f0659d57f72d475e011a0a350ede8f0045 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sat, 9 May 2020 11:21:14 +0530 Subject: [PATCH 098/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index da248cf..6d25351 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.234.118.68:8083" + sh "docker login -u admin -p admin123 13.234.118.69:8083" sh "docker tag saidamo/myweb:0.0.2 13.234.118.69:8083/damo:1.0.0" sh 'docker push 13.234.118.69:8083/damo:1.0.0' } From 795845f5ebd20751e00d8320a59966f5dfa74300 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 12 Jun 2020 12:13:05 +0530 Subject: [PATCH 099/136] Update Jenkinsfile --- Jenkinsfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6d25351..6962fd2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,12 @@ node{ sh "${mvnHome}/bin/mvn clean package" sh 'mv target/myweb*.war target/newapp.war' } + stage('SonarQube Analysis') { + def mvnHome = tool name: 'maven3', type: 'maven' + withSonarQubeEnv('sonar') { + sh "${mvnHome}/bin/mvn sonar:sonar" + } + } stage('Build Docker Imager'){ sh 'docker build -t saidamo/myweb:0.0.2 .' } @@ -18,11 +24,11 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.234.118.69:8083" - sh "docker tag saidamo/myweb:0.0.2 13.234.118.69:8083/damo:1.0.0" - sh 'docker push 13.234.118.69:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.233.123.58:8083" + sh "docker tag saidamo/myweb:0.0.2 13.233.123.58:8083/damo:1.0.0" + sh 'docker push 13.233.123.58:8083/damo:1.0.0' } - stage('Remove Previous Container'){ + stage('Remove Previous Container'){ try{ sh 'docker rm -f tomcattest' }catch(error){ @@ -32,11 +38,5 @@ node{ sh 'docker run -d -p 8090:8080 --name tomcattest saidamo/myweb:0.0.2' } } -stage('SonarQube Analysis') { - def mvnHome = tool name: 'maven3', type: 'maven' - withSonarQubeEnv('sonar') { - sh "${mvnHome}/bin/mvn sonar:sonar" - } - } - - } +} + From 695ce590b1a11e9f5ed46cf1d03d5733411e3609 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:53:30 +0530 Subject: [PATCH 100/136] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6962fd2..eae544c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.233.123.58:8083" - sh "docker tag saidamo/myweb:0.0.2 13.233.123.58:8083/damo:1.0.0" - sh 'docker push 13.233.123.58:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.126.237.104:8083" + sh "docker tag saidamo/myweb:0.0.2 13.126.237.104:8083/damo:1.0.0" + sh 'docker push 13.126.237.104:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,4 +39,3 @@ node{ } } } - From e56e0ba131324512951c0685d51810b46510d1bd Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:54:38 +0530 Subject: [PATCH 101/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index eae544c..7105168 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.126.237.104:8083" + sh "docker login -u admin -p admin123 13.126.237.103:8083" sh "docker tag saidamo/myweb:0.0.2 13.126.237.104:8083/damo:1.0.0" sh 'docker push 13.126.237.104:8083/damo:1.0.0' } From 1d84282d04ff2eb9410255b34e0ff2bffac9edbc Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 14 Jun 2020 19:54:55 +0530 Subject: [PATCH 102/136] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7105168..eae544c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.126.237.103:8083" + sh "docker login -u admin -p admin123 13.126.237.104:8083" sh "docker tag saidamo/myweb:0.0.2 13.126.237.104:8083/damo:1.0.0" sh 'docker push 13.126.237.104:8083/damo:1.0.0' } From fcc205a3541d3c2a6a08f2c1af1bc4e922e6ff02 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Fri, 3 Jul 2020 19:40:27 +0530 Subject: [PATCH 103/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eae544c..9f059ab 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.126.237.104:8083" - sh "docker tag saidamo/myweb:0.0.2 13.126.237.104:8083/damo:1.0.0" - sh 'docker push 13.126.237.104:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.232.245.202:8083" + sh "docker tag saidamo/myweb:0.0.2 13.232.245.202:8083/damo:1.0.0" + sh 'docker push 13.232.245.202:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From f165e36489c0efd8c7d226392da635b01b27c902 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 9 Aug 2020 10:22:57 +0530 Subject: [PATCH 104/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f059ab..bd0d515 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.232.245.202:8083" - sh "docker tag saidamo/myweb:0.0.2 13.232.245.202:8083/damo:1.0.0" - sh 'docker push 13.232.245.202:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.235.132.96:8083" + sh "docker tag saidamo/myweb:0.0.2 13.235.132.96:8083/damo:1.0.0" + sh 'docker push 13.235.132.96:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 666037602430c566cc78137c3fe5cd90594bc7b6 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 13 Sep 2020 11:07:49 +0530 Subject: [PATCH 105/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bd0d515..8b80fd5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.235.132.96:8083" - sh "docker tag saidamo/myweb:0.0.2 13.235.132.96:8083/damo:1.0.0" - sh 'docker push 13.235.132.96:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.232.179.23:8083" + sh "docker tag saidamo/myweb:0.0.2 13.232.179.23:8083/damo:1.0.0" + sh 'docker push 13.232.179.23:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 5c2619479c96972f35a66e4a90b0eb3b5adb2589 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 13 Sep 2020 11:11:02 +0530 Subject: [PATCH 106/136] Update Jenkinsfile From 34f202fc65ed29f5ae75837d846a599ec74f8282 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 18 Oct 2020 19:03:24 +0530 Subject: [PATCH 107/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b80fd5..8fa1147 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.232.179.23:8083" - sh "docker tag saidamo/myweb:0.0.2 13.232.179.23:8083/damo:1.0.0" - sh 'docker push 13.232.179.23:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.7.73.161:8083" + sh "docker tag saidamo/myweb:0.0.2 3.7.73.161:8083/damo:1.0.0" + sh 'docker push 3.7.73.161:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 17f977e4fb6944eb5f1114577086449c568cf918 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 22 Nov 2020 19:06:04 +0530 Subject: [PATCH 108/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8fa1147..da72234 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.7.73.161:8083" - sh "docker tag saidamo/myweb:0.0.2 3.7.73.161:8083/damo:1.0.0" - sh 'docker push 3.7.73.161:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 15.206.212.1:8083" + sh "docker tag saidamo/myweb:0.0.2 15.206.212.1:8083/damo:1.0.0" + sh 'docker push 15.206.212.1:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From ab4b984847b07269774331e48d6fd1d751808c85 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 27 Dec 2020 20:00:31 +0530 Subject: [PATCH 109/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da72234..6092c5b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 15.206.212.1:8083" - sh "docker tag saidamo/myweb:0.0.2 15.206.212.1:8083/damo:1.0.0" - sh 'docker push 15.206.212.1:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.0.110.226:8083" + sh "docker tag saidamo/myweb:0.0.2 65.0.110.226:8083/damo:1.0.0" + sh 'docker push 65.0.110.226:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From bfc2352147831550f1f0fa6938438d41e353b118 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 31 Jan 2021 18:33:45 +0530 Subject: [PATCH 110/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6092c5b..a3557f4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.0.110.226:8083" - sh "docker tag saidamo/myweb:0.0.2 65.0.110.226:8083/damo:1.0.0" - sh 'docker push 65.0.110.226:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 15.206.163.64:8083" + sh "docker tag saidamo/myweb:0.0.2 15.206.163.64:8083/damo:1.0.0" + sh 'docker push 15.206.163.64:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 150cbb755b85b58ef42e691d69d65aeb7403c63e Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 7 Mar 2021 18:59:01 +0530 Subject: [PATCH 111/136] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a3557f4..cffe132 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 15.206.163.64:8083" - sh "docker tag saidamo/myweb:0.0.2 15.206.163.64:8083/damo:1.0.0" - sh 'docker push 15.206.163.64:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.235.76.228:8083" + sh "docker tag saidamo/myweb:0.0.2 13.235.76.228:8083/damo:1.0.0" + sh 'docker push 13.235.76.228:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,3 +39,4 @@ node{ } } } + From 7848de4ed5f31c9eb7c5bb97f6d8c70442792675 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 11 Apr 2021 19:58:19 +0530 Subject: [PATCH 112/136] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cffe132..d15ec1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.235.76.228:8083" - sh "docker tag saidamo/myweb:0.0.2 13.235.76.228:8083/damo:1.0.0" - sh 'docker push 13.235.76.228:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.127.98.228:8083" + sh "docker tag saidamo/myweb:0.0.2 13.127.98.228:8083/damo:1.0.0" + sh 'docker push 13.127.98.228:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,4 +39,3 @@ node{ } } } - From 36a8e64708a03721920015bcd8aa06077c0fe926 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 25 Apr 2021 18:39:42 +0530 Subject: [PATCH 113/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d15ec1a..558b2b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.127.98.228:8083" - sh "docker tag saidamo/myweb:0.0.2 13.127.98.228:8083/damo:1.0.0" - sh 'docker push 13.127.98.228:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.2.121.249:8083" + sh "docker tag saidamo/myweb:0.0.2 65.2.121.249:8083/damo:1.0.0" + sh 'docker push 65.2.121.249:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 686870899f4f516979e1236a42b6e5c03307d573 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 25 Apr 2021 18:41:15 +0530 Subject: [PATCH 114/136] Update Jenkinsfile From 9049effc5223cb01e55fe7d2c2780a2206699687 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 16 May 2021 19:36:25 +0530 Subject: [PATCH 115/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 558b2b9..20a8cc8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.2.121.249:8083" - sh "docker tag saidamo/myweb:0.0.2 65.2.121.249:8083/damo:1.0.0" - sh 'docker push 65.2.121.249:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.2.123.80:8083" + sh "docker tag saidamo/myweb:0.0.2 65.2.123.80:8083/damo:1.0.0" + sh 'docker push 65.2.123.80:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 8e108947828b4ad36293508cf34d1724b53afcac Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 13 Jun 2021 20:23:24 +0530 Subject: [PATCH 116/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 20a8cc8..97c1046 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.2.123.80:8083" - sh "docker tag saidamo/myweb:0.0.2 65.2.123.80:8083/damo:1.0.0" - sh 'docker push 65.2.123.80:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.0.181.193:8083" + sh "docker tag saidamo/myweb:0.0.2 65.0.181.193:8083/damo:1.0.0" + sh 'docker push 65.0.181.193:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 4f71615f68ceeb98d3ba0710131ec90f4a387a3f Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 11 Jul 2021 20:17:22 +0530 Subject: [PATCH 117/136] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 97c1046..8e637f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,8 +24,8 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.0.181.193:8083" - sh "docker tag saidamo/myweb:0.0.2 65.0.181.193:8083/damo:1.0.0" + sh "docker login -u admin -p admin123 13.233.255.221:8083" + sh "docker tag saidamo/myweb:0.0.2 13.233.255.221:8083/damo:1.0.0" sh 'docker push 65.0.181.193:8083/damo:1.0.0' } stage('Remove Previous Container'){ From 4e545a03017fb2aaa3e1908a726afd443d81f4fc Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 15 Aug 2021 19:42:41 +0530 Subject: [PATCH 118/136] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e637f0..2ae447a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.233.255.221:8083" - sh "docker tag saidamo/myweb:0.0.2 13.233.255.221:8083/damo:1.0.0" - sh 'docker push 65.0.181.193:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.108.217.222:8083" + sh "docker tag saidamo/myweb:0.0.2 3.108.217.222:8083/damo:1.0.0" + sh 'docker push 3.108.217.222:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,3 +39,4 @@ node{ } } } + From 54d0463780375d9b3411c6af3e2d643949e9c757 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 5 Sep 2021 19:41:09 +0530 Subject: [PATCH 119/136] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2ae447a..2af5913 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.108.217.222:8083" - sh "docker tag saidamo/myweb:0.0.2 3.108.217.222:8083/damo:1.0.0" - sh 'docker push 3.108.217.222:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.108.234.205:8083" + sh "docker tag saidamo/myweb:0.0.2 3.108.234.205:8083/damo:1.0.0" + sh 'docker push 3.108.234.205:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,4 +39,3 @@ node{ } } } - From 22725ffe93244446978a08a6b9311838cb357827 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 3 Oct 2021 20:11:33 +0530 Subject: [PATCH 120/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2af5913..bfb8b41 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.108.234.205:8083" - sh "docker tag saidamo/myweb:0.0.2 3.108.234.205:8083/damo:1.0.0" - sh 'docker push 3.108.234.205:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.2.127.216:8083" + sh "docker tag saidamo/myweb:0.0.2 65.2.127.216:8083/damo:1.0.0" + sh 'docker push 65.2.127.216:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From e2445f8ebd1fab3fb5ed4335de90c5bc155cb67a Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 31 Oct 2021 20:09:23 +0530 Subject: [PATCH 121/136] Update Jenkinsfile --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bfb8b41..b9afa33 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.2.127.216:8083" - sh "docker tag saidamo/myweb:0.0.2 65.2.127.216:8083/damo:1.0.0" - sh 'docker push 65.2.127.216:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.108.254.67:8083" + sh "docker tag saidamo/myweb:0.0.2 3.108.254.67:8083/damo:1.0.0" + sh 'docker push 3.108.254.67:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,3 +39,6 @@ node{ } } } + + + From b442133aa3fec2c231a00d91dc975ee0e1ab0357 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 5 Dec 2021 19:53:00 +0530 Subject: [PATCH 122/136] Update Jenkinsfile --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b9afa33..943a18e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.108.254.67:8083" - sh "docker tag saidamo/myweb:0.0.2 3.108.254.67:8083/damo:1.0.0" - sh 'docker push 3.108.254.67:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.1.108.217:8083" + sh "docker tag saidamo/myweb:0.0.2 65.1.108.217:8083/damo:1.0.0" + sh 'docker push 65.1.108.217:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -40,5 +40,3 @@ node{ } } - - From 1098ada2a8f405c311e096cf6a545df1eb32c24d Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 9 Jan 2022 20:02:15 +0530 Subject: [PATCH 123/136] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 943a18e..dbf65c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.1.108.217:8083" - sh "docker tag saidamo/myweb:0.0.2 65.1.108.217:8083/damo:1.0.0" - sh 'docker push 65.1.108.217:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.110.123.32:8083" + sh "docker tag saidamo/myweb:0.0.2 3.110.123.32:8083/damo:1.0.0" + sh 'docker push 3.110.123.32:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ @@ -39,4 +39,3 @@ node{ } } } - From 96199ae0dc708b5e211f155a9de19635125b93f3 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 6 Feb 2022 20:36:31 +0530 Subject: [PATCH 124/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dbf65c3..8d77535 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.110.123.32:8083" - sh "docker tag saidamo/myweb:0.0.2 3.110.123.32:8083/damo:1.0.0" - sh 'docker push 3.110.123.32:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 65.2.81.184:8083" + sh "docker tag saidamo/myweb:0.0.2 65.2.81.184:8083/damo:1.0.0" + sh 'docker push 65.2.81.184:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 423fc7559e815c689de67d3fbb3e68fbadc48095 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 6 Mar 2022 19:50:41 +0530 Subject: [PATCH 125/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8d77535..893dba0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 65.2.81.184:8083" - sh "docker tag saidamo/myweb:0.0.2 65.2.81.184:8083/damo:1.0.0" - sh 'docker push 65.2.81.184:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 52.66.236.73:8083" + sh "docker tag saidamo/myweb:0.0.2 52.66.236.73:8083/damo:1.0.0" + sh 'docker push 52.66.236.73:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From f2d9b15061e4401051f73f6b3da620828eeed990 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 3 Apr 2022 19:54:27 +0530 Subject: [PATCH 126/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 893dba0..e001218 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 52.66.236.73:8083" - sh "docker tag saidamo/myweb:0.0.2 52.66.236.73:8083/damo:1.0.0" - sh 'docker push 52.66.236.73:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 15.207.111.195:8083" + sh "docker tag saidamo/myweb:0.0.2 15.207.111.195:8083/damo:1.0.0" + sh 'docker push 15.207.111.195:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From d7a5edfa88a485a5fe2664f40179507e17348d24 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 1 May 2022 19:58:40 +0530 Subject: [PATCH 127/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e001218..9e9896b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 15.207.111.195:8083" - sh "docker tag saidamo/myweb:0.0.2 15.207.111.195:8083/damo:1.0.0" - sh 'docker push 15.207.111.195:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.233.192.31:8083" + sh "docker tag saidamo/myweb:0.0.2 13.233.192.31:8083/damo:1.0.0" + sh 'docker push 13.233.192.31:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 7cbe9e3061cd13d0598ea1b652f263afc51015ba Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 5 Jun 2022 20:41:24 +0530 Subject: [PATCH 128/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e9896b..0db9aa4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.233.192.31:8083" - sh "docker tag saidamo/myweb:0.0.2 13.233.192.31:8083/damo:1.0.0" - sh 'docker push 13.233.192.31:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 35.154.155.185:8083" + sh "docker tag saidamo/myweb:0.0.2 35.154.155.185:8083/damo:1.0.0" + sh 'docker push 35.154.155.185:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 2de5f08e4d2b43c55e671253cc5662f3014b9896 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 3 Jul 2022 20:20:50 +0530 Subject: [PATCH 129/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0db9aa4..ea1ebf0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 35.154.155.185:8083" - sh "docker tag saidamo/myweb:0.0.2 35.154.155.185:8083/damo:1.0.0" - sh 'docker push 35.154.155.185:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.110.103.230:8083" + sh "docker tag saidamo/myweb:0.0.2 3.110.103.230:8083/damo:1.0.0" + sh 'docker push 3.110.103.230:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 617d76b43c615438480be9259e4dc5f5eb5da108 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 7 Aug 2022 20:07:03 +0530 Subject: [PATCH 130/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ea1ebf0..eee1d0a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.110.103.230:8083" - sh "docker tag saidamo/myweb:0.0.2 3.110.103.230:8083/damo:1.0.0" - sh 'docker push 3.110.103.230:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.109.217.180:8083" + sh "docker tag saidamo/myweb:0.0.2 3.109.217.180:8083/damo:1.0.0" + sh 'docker push 3.109.217.180:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From d75fe5f06ba4418da2ecce767c94bf692bae5f21 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 4 Sep 2022 20:05:19 +0530 Subject: [PATCH 131/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eee1d0a..151142b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.109.217.180:8083" - sh "docker tag saidamo/myweb:0.0.2 3.109.217.180:8083/damo:1.0.0" - sh 'docker push 3.109.217.180:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 13.233.6.106:8083" + sh "docker tag saidamo/myweb:0.0.2 13.233.6.106:8083/damo:1.0.0" + sh 'docker push 13.233.6.106:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 68e38123d6e17d03346fe7736dcb266dca2badbe Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 2 Oct 2022 19:51:50 +0530 Subject: [PATCH 132/136] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 151142b..04e2914 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,10 +23,10 @@ node{ } sh 'docker push saidamo/myweb:0.0.2' } - stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.233.6.106:8083" - sh "docker tag saidamo/myweb:0.0.2 13.233.6.106:8083/damo:1.0.0" - sh 'docker push 13.233.6.106:8083/damo:1.0.0' + stage('Nexus Image Push'){ + sh "docker login -u admin -p admin123 13.126.161.102:8083" + sh "docker tag saidamo/myweb:0.0.2 13.126.161.102:8083/damo:1.0.0" + sh 'docker push 13.126.161.102:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 1d304fc3982d3294ada5c8f29003f8518604b12e Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Thu, 13 Oct 2022 16:02:36 +0530 Subject: [PATCH 133/136] Create Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 04e2914..b83f31a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 13.126.161.102:8083" - sh "docker tag saidamo/myweb:0.0.2 13.126.161.102:8083/damo:1.0.0" - sh 'docker push 13.126.161.102:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 43.205.242.152:8083" + sh "docker tag saidamo/myweb:0.0.2 43.205.242.152:8083/damo:1.0.0" + sh 'docker push 43.205.242.152:8083/damo:1.0.0' } stage('Remove Previous Container'){ try{ From 24f529d3c9b812ddd2e07c3168b20afa47509596 Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 30 Oct 2022 19:56:14 +0530 Subject: [PATCH 134/136] Update Jenkinsfile 30/10/2022-- oct batch --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b83f31a..5252351 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,10 +24,11 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 43.205.242.152:8083" - sh "docker tag saidamo/myweb:0.0.2 43.205.242.152:8083/damo:1.0.0" - sh 'docker push 43.205.242.152:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 3.109.144.225:8083" + sh "docker tag saidamo/myweb:0.0.2 3.109.144.225:8083/damo:1.0.0" + sh 'docker push 3.109.144.225:8083/damo:1.0.0' } + stage('Remove Previous Container'){ try{ sh 'docker rm -f tomcattest' From 8e537128f4be8126a33f423a4e042ade8123a1ef Mon Sep 17 00:00:00 2001 From: damodaranj <40349259+damodaranj@users.noreply.github.com> Date: Sun, 4 Dec 2022 18:57:49 +0530 Subject: [PATCH 135/136] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5252351..e961b06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,9 @@ node{ sh 'docker push saidamo/myweb:0.0.2' } stage('Nexus Image Push'){ - sh "docker login -u admin -p admin123 3.109.144.225:8083" - sh "docker tag saidamo/myweb:0.0.2 3.109.144.225:8083/damo:1.0.0" - sh 'docker push 3.109.144.225:8083/damo:1.0.0' + sh "docker login -u admin -p admin123 54.171.156.244:8083" + sh "docker tag saidamo/myweb:0.0.2 54.171.156.244:8083/damo:1.0.0" + sh 'docker push 54.171.156.244:8083/damo:1.0.0' } stage('Remove Previous Container'){ From 32f955dfc5a146cbd7150d9e99faddeaddc11e6d Mon Sep 17 00:00:00 2001 From: naresh26git <111833906+naresh26git@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:55:08 +0530 Subject: [PATCH 136/136] Add files via upload --- file.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 file.txt diff --git a/file.txt b/file.txt new file mode 100644 index 0000000..3b18e51 --- /dev/null +++ b/file.txt @@ -0,0 +1 @@ +hello world