changes sh command

This commit is contained in:
shaif ali khan 2023-07-29 13:34:28 +05:30
parent 57d779b101
commit 07f1b17950

16
Jenkinsfile vendored
View file

@ -7,31 +7,25 @@ pipeline {
pollSCM('* * * * *') pollSCM('* * * * *')
} }
tools { tools {
jdk 'java-17' jdk 'JDK_17'
} }
stages { stages {
stage('vcs') { stage('vcs') {
steps { steps {
git url: 'https://github.com/shaifalikhan5/spring-petclinic.git', git url: 'https://github.com/shaifalikhan5/spring-petclinic.git',
branch: 'developer' branch: 'developer'
} }
} }
stage('build and packaging') { stage('build and package') {
steps { steps {
sh script: 'mvn package'
sh : "mvn package"
} }
} }
stage('reporting') { stage('reporting') {
steps { steps {
archiveArtifacts artifacts : '**/target/sprigpetclinic-*.jar' archiveArtifacts artifacts: '**/target/springpetclinic-*.jar'
junit testResults : '**/surefire-reports/**.xml' junit testResults: '**/target/surefire-reports/TEST-*.xml'
} }
} }
} }