mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 15:25:49 +00:00
Add build docker image step in Jenkinsfile
This commit is contained in:
parent
1e1ad4073b
commit
9a40c2c09c
1 changed files with 8 additions and 0 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -25,5 +25,13 @@ pipeline {
|
||||||
archiveArtifacts artifacts: 'build/libs/*.jar'
|
archiveArtifacts artifacts: 'build/libs/*.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Docker Build') {
|
||||||
|
|
||||||
|
steps {
|
||||||
|
echo 'Building docker Image'
|
||||||
|
sh 'docker build -t $NEXUS_DOCKER_REPO/spring-petclinic:${GIT_COMMIT} .'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue