Add Golang Docker image build support in CI
This patch adds support to build/upload music-distributed-kv-store-image
to nexus.
For context: The docker-build.sh script is this: [1]
[1] - https://git.onap.org/music/distributed-kv-store/tree/deployment/docker-build.sh
Change-Id: I3320046d243d3452d12e2d5a06db1e04c832a269
Issue-ID: MUSIC-59
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
diff --git a/jjb/music/build-music-distributed-kv-store-image.sh b/jjb/music/build-music-distributed-kv-store-image.sh
new file mode 100755
index 0000000..d11f053
--- /dev/null
+++ b/jjb/music/build-music-distributed-kv-store-image.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo '============== CALLING SCRIPT TO BUILD DOCKER IMAGES ================='
+CURRENTDIR="$(pwd)"
+echo $CURRENTDIR
+
+chmod 755 ./deployment/*.sh
+cd ./deployment
+./docker-build.sh
diff --git a/jjb/music/music-distributed-kv-store.yaml b/jjb/music/music-distributed-kv-store.yaml
index 0de8a86..f853083 100644
--- a/jjb/music/music-distributed-kv-store.yaml
+++ b/jjb/music/music-distributed-kv-store.yaml
@@ -7,6 +7,9 @@
- gerrit-python-xc-clm
- '{project-name}-{stream}-verify-golang'
- '{project-name}-{stream}-merge-golang'
+ - '{project-name}-{stream}-docker-golang-shell-daily':
+ script:
+ !include-raw-escape: 'build-music-distributed-kv-store-image.sh'
project: 'music/distributed-kv-store'
stream:
- 'master':