From 2eda67f18a25ec1bd79c6f84154f3b1ab776e148 Mon Sep 17 00:00:00 2001 From: MOSHOOD YAHAYA <61254056+Mosh094@users.noreply.github.com> Date: Sat, 29 Oct 2022 02:20:52 +0100 Subject: [PATCH 1/2] Update Jenkinsfile-CI --- jenkins/Jenkinsfile-CI | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jenkins/Jenkinsfile-CI b/jenkins/Jenkinsfile-CI index 008be8b7..e3b6d160 100644 --- a/jenkins/Jenkinsfile-CI +++ b/jenkins/Jenkinsfile-CI @@ -4,14 +4,14 @@ pipeline { stage('compile') { steps { echo 'compiling..' - git url: 'https://github.com/lerndevops/samplejavaapp' - sh script: '/opt/maven/bin/mvn compile' + git url: 'https://github.com/Mosh094/samplejavaapp' + sh script: '/opt/apache-maven-3.8.6/bin/mvn compile' } } stage('codereview-pmd') { steps { echo 'codereview..' - sh script: '/opt/maven/bin/mvn -P metrics pmd:pmd' + sh script: '/opt/apache-maven-3.8.6/bin/mvn -P metrics pmd:pmd' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/maven/bin/mvn test' + sh script: '/opt/apache-maven-3.8.6/bin/mvn test' } post { success { @@ -33,7 +33,7 @@ pipeline { stage('codecoverage') { steps { echo 'codecoverage..' - sh script: '/opt/maven/bin/mvn verify' + sh script: '/opt/apache-maven-3.8.6/bin/mvn verify' } post { success { @@ -44,7 +44,7 @@ pipeline { stage('package') { steps { echo 'package......' - sh script: '/opt/maven/bin/mvn package' + sh script: '/opt/apache-maven-3.8.6/bin/mvn package' } } } From 483b50c8fde35b029712f74fb938196018104214 Mon Sep 17 00:00:00 2001 From: MOSHOOD YAHAYA <61254056+Mosh094@users.noreply.github.com> Date: Sat, 29 Oct 2022 02:22:42 +0100 Subject: [PATCH 2/2] Rename Jenkinsfile-CI to Jenkinsfile --- jenkins/{Jenkinsfile-CI => Jenkinsfile} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jenkins/{Jenkinsfile-CI => Jenkinsfile} (100%) diff --git a/jenkins/Jenkinsfile-CI b/jenkins/Jenkinsfile similarity index 100% rename from jenkins/Jenkinsfile-CI rename to jenkins/Jenkinsfile