From e75fbb6469bb7cddecbec71823bc67b079a9277c Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 13:20:38 +0530 Subject: [PATCH 1/7] added pipeline --- Jenkins | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkins diff --git a/Jenkins b/Jenkins new file mode 100644 index 000000000..1cddf2da5 --- /dev/null +++ b/Jenkins @@ -0,0 +1,22 @@ +pipeline{ + agent{label "MAVEN"} + options{ + timeout (time: 30,unit:'MINUTES') + } + tiggers{ + pollSCM('* * * * *') + } + stages{ + stage ('git') { + step { + git url :'https://github.com/dhille98/spring-petclinic.git' + branch:'dev' + } + } + stage('bulid') { + steps { + sh 'mvn clean package' + } + } + } +} \ No newline at end of file From aad4f82e88fc736a7066e074b8d3782b91ea3149 Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 13:39:05 +0530 Subject: [PATCH 2/7] added --- Jenkins | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkins b/Jenkins index 1cddf2da5..64906c7db 100644 --- a/Jenkins +++ b/Jenkins @@ -1,13 +1,13 @@ pipeline{ agent{label "MAVEN"} options{ - timeout (time: 30,unit:'MINUTES') - } - tiggers{ - pollSCM('* * * * *') + timeout(time: 30, unit: 'MINUTES') } + triggers { + pollSCM('* * * * *') + } stages{ - stage ('git') { + stage('git') { step { git url :'https://github.com/dhille98/spring-petclinic.git' branch:'dev' From c167850ab6ce76cdf6b6f5a3b53f9c0f387e22cf Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 14:28:40 +0530 Subject: [PATCH 3/7] added new --- Jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkins b/Jenkins index 64906c7db..4c16326f8 100644 --- a/Jenkins +++ b/Jenkins @@ -7,7 +7,7 @@ pipeline{ pollSCM('* * * * *') } stages{ - stage('git') { + stage( 'git' ) { step { git url :'https://github.com/dhille98/spring-petclinic.git' branch:'dev' From 519876df1dbf6577442764e0a14aa11ea6c485a9 Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 14:32:41 +0530 Subject: [PATCH 4/7] addded --- Jenkins | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkins b/Jenkins index 4c16326f8..44897b571 100644 --- a/Jenkins +++ b/Jenkins @@ -6,9 +6,9 @@ pipeline{ triggers { pollSCM('* * * * *') } - stages{ - stage( 'git' ) { - step { + stages { + stage('git') { + steps { git url :'https://github.com/dhille98/spring-petclinic.git' branch:'dev' } From 5dd42f526a0887a1dadcb130d734600c5aee1dfe Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 14:35:26 +0530 Subject: [PATCH 5/7] added new v --- Jenkins | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkins b/Jenkins index 44897b571..b65a5e2dd 100644 --- a/Jenkins +++ b/Jenkins @@ -9,8 +9,9 @@ pipeline{ stages { stage('git') { steps { - git url :'https://github.com/dhille98/spring-petclinic.git' - branch:'dev' + git url :'https://github.com/dhille98/spring-petclinic.git' + branch: 'dev' + } } stage('bulid') { From 155de91801d50688930cffe6eb9780119b010780 Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 14:39:35 +0530 Subject: [PATCH 6/7] ad --- Jenkins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkins b/Jenkins index b65a5e2dd..92ee2f87f 100644 --- a/Jenkins +++ b/Jenkins @@ -10,7 +10,7 @@ pipeline{ stage('git') { steps { git url :'https://github.com/dhille98/spring-petclinic.git' - branch: 'dev' + branch : 'dev' } } From b8f11381e9b002bee816a800cbef12caa23194c4 Mon Sep 17 00:00:00 2001 From: dhille Date: Thu, 30 Nov 2023 19:57:39 +0530 Subject: [PATCH 7/7] added some changes --- Jenkins | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkins b/Jenkins index 92ee2f87f..42c7411d7 100644 --- a/Jenkins +++ b/Jenkins @@ -1,23 +1,23 @@ -pipeline{ - agent{label "MAVEN"} - options{ - timeout(time: 30, unit: 'MINUTES') +pipeline { + agent { label 'MAVEN' } + options { + timeout(time: 30, unit: 'MINUTES') } triggers { - pollSCM('* * * * *') - } + pollSCM('* * * * *') + } stages { stage('git') { steps { - git url :'https://github.com/dhille98/spring-petclinic.git' - branch : 'dev' - + git url: 'https://github.com/dhille98/spring-petclinic.git' , + branch: 'dev' } } - stage('bulid') { + stage('build') { steps { sh 'mvn clean package' } } } + } \ No newline at end of file