Update Jenkinsfile

This commit is contained in:
Stas Bezuhlyi 2021-04-08 18:57:27 +03:00 committed by GitHub
parent 8ccf5b22f5
commit bdbfc4480c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
Jenkinsfile vendored
View file

@ -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
'''
}
}