From fe6f1341b6cef0dd8b79dc4f83998b1e60afa264 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Mon, 4 Apr 2022 19:39:56 +0530 Subject: [PATCH 1/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2d4e291f5..3089f94c4 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,4 @@ Hello World! (WAR-style) =============== This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration. +hi Welcome From 0c9b6b3fbf03ba2dc116b3464227142da59fd525 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Thu, 7 Apr 2022 00:24:36 +0530 Subject: [PATCH 2/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3089f94c4..424818a72 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,4 @@ Hello World! (WAR-style) This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration. hi Welcome +hi tur From 5d18906a65ee8ad1a9ea39dc0d93174971ba41be Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Thu, 7 Apr 2022 00:29:38 +0530 Subject: [PATCH 3/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 424818a72..34c597f33 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ Hello World! (WAR-style) This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration. hi Welcome -hi tur +hi tursday From 3aa3eb8e0e660827559c85d417ae87294b6fc142 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Sat, 9 Apr 2022 21:58:27 +0530 Subject: [PATCH 4/8] Create Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..c3b8687ec --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,19 @@ + +pipeline { + agent none + stages { + stage('checkout') { +agent { label 'java' } + steps { + sh 'git clone https://github.com/darshanbguru/hello-world-war.git' + } + } + +stage('build') { +agent { label 'java' } + steps { + sh 'mvn clean package' + } + } + } +} From 7b6bb4953c89f3e57d874c6b0881dbc4fd9b1c76 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Sat, 9 Apr 2022 22:07:04 +0530 Subject: [PATCH 5/8] Update Jenkinsfile --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index c3b8687ec..bbb9f38b1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,5 +15,13 @@ agent { label 'java' } sh 'mvn clean package' } } +stage('deploy') { +agent { label 'java' } + steps { + sh 'cp /var/lib/jenkins/workspace/project123/target/hello-world-war-1.0.0 /opt/apache-tomcat-8.5.78/webapps' + } + } + } + } From e62c6b0ffcbd4282db02032cdebf692fe52ad5f5 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Sat, 9 Apr 2022 22:13:24 +0530 Subject: [PATCH 6/8] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bbb9f38b1..e4a0df8b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('checkout') { agent { label 'java' } steps { - sh 'git clone https://github.com/darshanbguru/hello-world-war.git' + sh 'https://github.com/Sahanamahadev/hello-world-war.git' } } From 169b3b2af5c28d9b7cfa26d00f191f53db1dcb12 Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Thu, 14 Apr 2022 20:19:52 +0530 Subject: [PATCH 7/8] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e4a0df8b3..a18f06996 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('checkout') { agent { label 'java' } steps { - sh 'https://github.com/Sahanamahadev/hello-world-war.git' + sh 'git clone https://github.com/Sahanamahadev/hello-world-war.git' } } From 7a2c2f5324d5db45921d92976a2bcb9f12c9503e Mon Sep 17 00:00:00 2001 From: Sahanamahadev <96735509+Sahanamahadev@users.noreply.github.com> Date: Thu, 14 Apr 2022 23:35:43 +0530 Subject: [PATCH 8/8] Update Jenkinsfile --- Jenkinsfile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a18f06996..ea8b92d72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,27 +1,16 @@ - pipeline { - agent none + agent { label 'java' } stages { stage('checkout') { -agent { label 'java' } steps { sh 'git clone https://github.com/Sahanamahadev/hello-world-war.git' } } - -stage('build') { -agent { label 'java' } + stage('build') { steps { sh 'mvn clean package' } } -stage('deploy') { -agent { label 'java' } - steps { - sh 'cp /var/lib/jenkins/workspace/project123/target/hello-world-war-1.0.0 /opt/apache-tomcat-8.5.78/webapps' - } - } - } - +} }