From 212960b5755a7a91b30be183aeb0739efd690d3c Mon Sep 17 00:00:00 2001 From: SakshiR01 <108392935+SakshiR01@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:26:33 +0530 Subject: [PATCH 1/4] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ae953c63..3742004b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent any tools{ - maven 'maven_3_5_0' + maven 'maven' } stages{ stage('Build Maven'){ @@ -36,4 +36,4 @@ pipeline { } } } -} \ No newline at end of file +} From c90d6ea5fa1d564a2484d18f4df6cd872f499c28 Mon Sep 17 00:00:00 2001 From: SakshiR01 <108392935+SakshiR01@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:31:01 +0530 Subject: [PATCH 2/4] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3742004b..ba0963a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,8 @@ pipeline { agent any - tools{ - maven 'maven' - } + //tools{ + // maven 'maven' + //} stages{ stage('Build Maven'){ steps{ From 8d1e49f32cfc9203aff3d5755f6fb34234424171 Mon Sep 17 00:00:00 2001 From: SakshiR01 <108392935+SakshiR01@users.noreply.github.com> Date: Tue, 4 Oct 2022 11:34:58 +0530 Subject: [PATCH 3/4] Update Jenkinsfile --- Jenkinsfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ba0963a9..30fdc409 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,13 +3,13 @@ pipeline { //tools{ // maven 'maven' //} - stages{ - stage('Build Maven'){ - steps{ - checkout([$class: 'GitSCM', branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/Java-Techie-jt/devops-automation']]]) - sh 'mvn clean install' - } - } + //stages{ + // stage('Build Maven'){ + // steps{ + // checkout([$class: 'GitSCM', branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[url: 'https://github.com/Java-Techie-jt/devops-automation']]]) + // sh 'mvn clean install' + //} + //} stage('Build docker image'){ steps{ script{ From b7d5589a98ba0d52ffe50264bd2b28890c89a752 Mon Sep 17 00:00:00 2001 From: SakshiR01 <108392935+SakshiR01@users.noreply.github.com> Date: Tue, 4 Oct 2022 11:36:38 +0530 Subject: [PATCH 4/4] Update Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 30fdc409..6002694e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,4 +36,3 @@ pipeline { } } } -}