mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 16:45:48 +00:00
Update Jenkinsfile
This commit is contained in:
parent
30b9f5b20a
commit
c2bce7ee5c
1 changed files with 8 additions and 4 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
@ -7,12 +7,16 @@ pipeline {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Initialaze') {
|
stage ('Test maven') {
|
||||||
steps {
|
steps {
|
||||||
|
try {
|
||||||
sh '''
|
sh '''
|
||||||
echo "PATH = ${PATH}"
|
mvn --version
|
||||||
echo "M2_HOME = ${M2_HOME}"
|
mvn clean test serefire-report:report
|
||||||
'''
|
'''
|
||||||
|
} catch(err) {
|
||||||
|
sh "echo error Maven test"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|
Loading…
Reference in a new issue