mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-25 08:35:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
8ccf5b22f5
commit
bdbfc4480c
1 changed files with 2 additions and 9 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -7,14 +7,7 @@ pipeline {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ('Test maven') {
|
|
||||||
steps {
|
|
||||||
sh '''
|
|
||||||
mvn --version
|
|
||||||
mvn clean test surefire-report:report
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
echo 'Running build automation'
|
echo 'Running build automation'
|
||||||
|
@ -27,7 +20,7 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo 'Creating Docker Image...'
|
echo 'Creating Docker Image...'
|
||||||
sh '''
|
sh '''
|
||||||
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerfile
|
docker build . -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerfile
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue