Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. stage("Build docker image") {
  2. //when {
  3. // expression { env.CHANGE_ID != null }
  4. //}
  5. steps {
  6. 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"
  7. }
  8. post {
  9. success {
  10. handleStatus(STAGE_NAME, true);
  11. }
  12. failure {
  13. handleStatus(STAGE_NAME, false);
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement