[CORD-2846]
Fix minor issues discovered when running Jenkins job to build images
Change-Id: I572a7b686ce6738b44feb4f2e53c4c437d7c0c17
diff --git a/Jenkinsfile.imagebuilder b/Jenkinsfile.imagebuilder
index 48b97fa..2309605 100644
--- a/Jenkinsfile.imagebuilder
+++ b/Jenkinsfile.imagebuilder
@@ -26,7 +26,7 @@
stage('imagebuilder'){
node('master') {
- sh '$WORKSPACE/imagebuilder.py -v -b -r cord/ -c cord/docker_images.yml -l image_logs -a ib_actions.yml -g ib_graph.dot'
+ sh '$WORKSPACE/imagebuilder.py -v -r cord/ -c cord/docker_images.yml -l image_logs -a ib_actions.yml -g ib_graph.dot'
}
}
@@ -37,8 +37,9 @@
withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) {
for(image in ib_actions.ib_built){
for(tag in image.tags){
- echo "Pushing image: " + tag
- docker.image(tag).push()
+ push_tag = image.base + ":" + tag
+ echo "Pushing image: " + push_tag
+ docker.image(push_tag).push()
}
}
}