[CORD-795]
Docker image building/tagging/labeling, Makefile based build
Change-Id: I0d70ab01353999c0e0585547582af9c62d247987
diff --git a/Jenkinsfile.imagebuilder b/Jenkinsfile.imagebuilder
new file mode 100644
index 0000000..ca45649
--- /dev/null
+++ b/Jenkinsfile.imagebuilder
@@ -0,0 +1,33 @@
+
+stage('checkout') {
+ node('master'){
+ checkout(changelog: false, poll: false, scm: [$class: 'RepoScm', \
+ manifestRepositoryUrl: 'https://gerrit.opencord.org/manifest.git', \
+ manifestBranch: 'master', currentBranch: true, \
+ manifestFile: 'default.xml', \
+ destinationDir: 'cord', \
+ forceSync: true, resetFirst: true, \
+ quiet: false, jobs: 4, showAllChanges: true])
+ }
+}
+
+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'
+ }
+}
+
+stage('push'){
+ node('master'){
+ def ib_actions = readYaml( file:"$WORKSPACE/ib_actions.yml" )
+
+ withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) {
+ for(image in ib_actions.ib_built){
+ echo "Pushing image: " + image.push_name
+ docker.image(image.push_name).push()
+ }
+ }
+ }
+}
+
+echo "All done"