fix docker push command, add unsuccessful post stage

This commit is contained in:
Alastair Smith 2019-09-06 16:40:39 -05:00
parent 6f93c768a7
commit ddfc403da2
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -48,7 +48,7 @@ pipeline {
docker build -t docs/docker.github.io:prod-${env.BUILD_NUMBER} .
docker tag docs/docker.github.io:prod-${env.BUILD_NUMBER} docs/docker.github.io:latest
docker push docs/docker.github.io:prod-${env.BUILD_NUMBER}
docker push docs/docker.github.io:latest .
docker push docs/docker.github.io:latest
unzip -o $UCP_BUNDLE
cd ucp-bundle-success_bot
export DOCKER_TLS_VERIFY=1
@ -107,4 +107,11 @@ pipeline {
}
}
}
post {
unsuccessful {
sh """
curl -X POST -H 'Content-type: application/json' --data '{"text":"Error in docker.github.io:published build. Please contact the Customer Success Engineering team for help."}' $SLACK
"""
}
}
}