From 34d3dde927e95b79f298c614991209382cea0fdc Mon Sep 17 00:00:00 2001 From: banina Date: Wed, 19 Jan 2022 22:15:56 -0500 Subject: [PATCH 01/25] Added empty Jenkinsfile --- Jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..e69de29bb2d From f4863cc448afd55fbd7de3fb911c2ab9c7d6c470 Mon Sep 17 00:00:00 2001 From: banina Date: Thu, 20 Jan 2022 21:49:31 -0500 Subject: [PATCH 02/25] Modified Jenkinsfile --- Jenkinsfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index e69de29bb2d..8868d42b358 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,14 @@ +pipeline { + agent any + tools { + maven 'maven-3.6.3' + } + stages { + stage ('Build') { + steps { + dir ("/var/lib/jenkins/workspace/spring-petclinic/") + sh './mvnw package' + } + } + } +} \ No newline at end of file From 432db87be8ede9a8b36402958926c6281b447015 Mon Sep 17 00:00:00 2001 From: banina Date: Thu, 20 Jan 2022 22:21:36 -0500 Subject: [PATCH 03/25] Modified Jenkinsfile1 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8868d42b358..d05d9fd1bde 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,4 +11,4 @@ pipeline { } } } -} \ No newline at end of file +} From 073f69c27a9035d72724d01bc3c1b6f9921ec2d3 Mon Sep 17 00:00:00 2001 From: banina Date: Thu, 20 Jan 2022 22:26:14 -0500 Subject: [PATCH 04/25] Modified Jenkinsfile2 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d05d9fd1bde..8868d42b358 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,4 +11,4 @@ pipeline { } } } -} +} \ No newline at end of file From a4f147e5213e8e2c1b99c71b654e31f7275eb92d Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 02:27:00 -0500 Subject: [PATCH 05/25] Modified jenkinsfile3 --- Jenkinsfile | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8868d42b358..155474c7f6d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,22 @@ -pipeline { - agent any - tools { - maven 'maven-3.6.3' - } - stages { - stage ('Build') { - steps { - dir ("/var/lib/jenkins/workspace/spring-petclinic/") - sh './mvnw package' - } +pipeline{ + agent any + tools { + maven 'Maven' + } + + stages{ + stage('SCM'){ + steps{ + git credentialsId: 'Github_Token', + url: 'https://github.com/AndrewBanin/spring-petclinic.git' + } + + } + + stage('Maven Build'){ + steps{ + sh "mvn clean package" + } + } } - } } \ No newline at end of file From 896bfe03b13059f0455140c90b705cd6f1aa090c Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 10:44:05 -0500 Subject: [PATCH 06/25] Modified jenkinsfile4 --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 155474c7f6d..699ee02515e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline{ } stages{ - stage('SCM'){ + stage('CDOWNLOAD'){ steps{ git credentialsId: 'Github_Token', url: 'https://github.com/AndrewBanin/spring-petclinic.git' @@ -19,4 +19,4 @@ pipeline{ } } } -} \ No newline at end of file +} From 7b850c2949831e0a4f1bedf685e8023d1502bfef Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 10:56:14 -0500 Subject: [PATCH 07/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 699ee02515e..ba94a80ca50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,3 +20,4 @@ pipeline{ } } } + From 461b2c039ab201a9e2db08ed5ec6036e6c7a63d2 Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 11:11:35 -0500 Subject: [PATCH 08/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ba94a80ca50..f20310750f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,3 +21,4 @@ pipeline{ } } + From 0bd5ba0b231a3234817412ffa1afd51d4f3fd27a Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 11:13:57 -0500 Subject: [PATCH 09/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index f20310750f7..2538367fa93 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,3 +22,4 @@ pipeline{ } + From 16ef312ded658405cf8d74331f2f69b2cebad45a Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 11:17:10 -0500 Subject: [PATCH 10/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 2538367fa93..6d319c3eeba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,3 +23,4 @@ pipeline{ + From 1d755fd720b4da630dbab42d6cfab6b6e26f7533 Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 12:09:46 -0500 Subject: [PATCH 11/25] Modified jenkinsfile5 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6d319c3eeba..0d6baff0853 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline{ } stages{ - stage('CDOWNLOAD'){ + stage('CONTINOUSDOWNLOAD'){ steps{ git credentialsId: 'Github_Token', url: 'https://github.com/AndrewBanin/spring-petclinic.git' From 7707bb1f171a1177d833168fb3ebc6e5c1ba77fd Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 13:03:04 -0500 Subject: [PATCH 12/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0d6baff0853..ddc55633473 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,3 +24,4 @@ pipeline{ + From 2d3780bb81107d9c8969478fba9cc9f59b3f63e2 Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 13:07:13 -0500 Subject: [PATCH 13/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ddc55633473..7be31c841f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,3 +25,4 @@ pipeline{ + From c6086f20ff4a0a968bee6d18c24a6a33b064b0bd Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 13:10:21 -0500 Subject: [PATCH 14/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 7be31c841f8..b5bf57dd4c9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,3 +26,4 @@ pipeline{ + From 5bcdba6acd93655262ba8dfede60f0afe570931e Mon Sep 17 00:00:00 2001 From: banina Date: Sat, 22 Jan 2022 13:24:36 -0500 Subject: [PATCH 15/25] Modified jenkinsfile5 --- Jenkinsfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b5bf57dd4c9..31e0869a37f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,11 +19,4 @@ pipeline{ } } } -} - - - - - - - +} \ No newline at end of file From e4a2f708ad2dad5f4d7681d906b41408995f77ec Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 01:03:53 -0500 Subject: [PATCH 16/25] Modified jenkinsfile5 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 31e0869a37f..1b9c9cadaa8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,4 +19,4 @@ pipeline{ } } } -} \ No newline at end of file +} From 4334ae51753bf211ac5ee2d5b69f192542a583a6 Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 01:43:29 -0500 Subject: [PATCH 17/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + spring-petclinic | 1 + 2 files changed, 2 insertions(+) create mode 160000 spring-petclinic diff --git a/Jenkinsfile b/Jenkinsfile index 1b9c9cadaa8..0128bebfa0e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,3 +20,4 @@ pipeline{ } } } + diff --git a/spring-petclinic b/spring-petclinic new file mode 160000 index 00000000000..5ff9339d611 --- /dev/null +++ b/spring-petclinic @@ -0,0 +1 @@ +Subproject commit 5ff9339d611de264facf018438e0a2231d2f3780 From d870aeafe241c545eb9de244f9f4315722d627f0 Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 21:10:32 -0500 Subject: [PATCH 18/25] Modified jenkinsfile5 --- Jenkinsfile | 1 + spring-petclinic | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 160000 spring-petclinic diff --git a/Jenkinsfile b/Jenkinsfile index 0128bebfa0e..df5f6ffc29f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,3 +21,4 @@ pipeline{ } } + diff --git a/spring-petclinic b/spring-petclinic deleted file mode 160000 index 5ff9339d611..00000000000 --- a/spring-petclinic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5ff9339d611de264facf018438e0a2231d2f3780 From 80279022a47b8f7f035b852acbf8ea22914cff1a Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 22:08:21 -0500 Subject: [PATCH 19/25] Modified jenkinsfile6 --- Jenkinsfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index df5f6ffc29f..5e67e4b8e80 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,11 @@ pipeline{ sh "mvn clean package" } } - } -} - + stage('Building Jar'){ + steps{ + sh '/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar' + } + } + } +} \ No newline at end of file From b189997e041ac9586af641d3b07bef7b4a322ee3 Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 22:13:46 -0500 Subject: [PATCH 20/25] Modified jenkinsfile6 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5e67e4b8e80..7e2f509bb83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline{ } stage('Building Jar'){ steps{ - sh '/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar' + sh "/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" } } From e597e37726df176bea54791596b195e7e37aa87e Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 22:17:33 -0500 Subject: [PATCH 21/25] Modified jenkinsfile6 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7e2f509bb83..70f52487ce0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline{ } stage('Building Jar'){ steps{ - sh "/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" + sh "spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" } } From 0234cff75fca1e6a8d6a3009c4efef092b278042 Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 22:32:22 -0500 Subject: [PATCH 22/25] Modified jenkinsfile6 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 70f52487ce0..2cb84be896c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,8 @@ pipeline{ } stage('Building Jar'){ steps{ - sh "spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" + environment { + building jar = "/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" } } From d97de9055f27181e4db0ce3c524561eb9bc250dc Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 23:20:32 -0500 Subject: [PATCH 23/25] Modified jenkinsfile6 --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2cb84be896c..e7fb45b17de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,8 +20,7 @@ pipeline{ } stage('Building Jar'){ steps{ - environment { - building jar = "/root/.jenkins/workspace/second_Project_add-jenkinsfile/target/spring-petclinic-2.3.1.BUILD-SNAPSHOT.jar" + archiveArtifacts artifacts: '/target/*.jar', followSymlinks: false } } From c9f4d9552e565ea651a8d8faf9c3c232eefae0cc Mon Sep 17 00:00:00 2001 From: banina Date: Mon, 24 Jan 2022 23:23:56 -0500 Subject: [PATCH 24/25] Modified jenkinsfile6 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e7fb45b17de..c6419053873 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,7 +20,7 @@ pipeline{ } stage('Building Jar'){ steps{ - archiveArtifacts artifacts: '/target/*.jar', followSymlinks: false + archiveArtifacts artifacts: 'target/*.jar', followSymlinks: false } } From 69660999faa8d2b99662712c58fa73a1f03cc16a Mon Sep 17 00:00:00 2001 From: banina Date: Tue, 25 Jan 2022 19:18:41 -0500 Subject: [PATCH 25/25] Modified jenkinsfile6 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c6419053873..871d6d38d5c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ pipeline{ sh "mvn clean package" } } - stage('Building Jar'){ + stage('archive artifact'){ steps{ archiveArtifacts artifacts: 'target/*.jar', followSymlinks: false }