mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:05:48 +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
|
||||
}
|
||||
}
|
||||
stage ('Test maven') {
|
||||
steps {
|
||||
sh '''
|
||||
mvn --version
|
||||
mvn clean test surefire-report:report
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Running build automation'
|
||||
|
@ -27,7 +20,7 @@ pipeline {
|
|||
steps {
|
||||
echo 'Creating Docker Image...'
|
||||
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