Update Jenkinsfile

This commit is contained in:
Stas Bezuhlyi 2021-04-08 18:21:20 +03:00 committed by GitHub
parent 1fbfe27d2e
commit 67084277f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
Jenkinsfile vendored
View file

@ -19,13 +19,16 @@ pipeline {
steps {
echo 'Running build automation'
sh '''
./mvnw package
./mvnw package
'''
}
}
stage('CREATE ARTIFACT') {
steps {
archiveArtifacts artifacts: 'target/spring-petclinic-2.4.2.jar', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
echo 'Creating Docker Image...''
sh '''
docker build -t rodley/pet-clinic:${BUILD_NUMBER} -f Dockerdile
'''
}
}
stage('Deploy') {