Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stage("Build docker image") {
- //when {
- // expression { env.CHANGE_ID != null }
- //}
- steps {
- sh "docker build . --rm --build-arg MVN_USERNAME=${env.MVN_USERNAME} --build-arg MVN_PASSWORD=${env.MVN_PASSWORD} -t adres_repo:port/nazwa_apki:PR-${env.CHANGE_ID}_${env.BUILD_NUMBER} -t adres_repo:port/nazwa_apki:latest"
- }
- post {
- success {
- handleStatus(STAGE_NAME, true);
- }
- failure {
- handleStatus(STAGE_NAME, false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement