mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
1fbfe27d2e
commit
67084277f8
1 changed files with 5 additions and 2 deletions
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue