Add Golang Docker image build support in CI 17/36317/4
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Fri, 16 Mar 2018 23:28:42 +0000 (16:28 -0700)
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Tue, 20 Mar 2018 18:22:33 +0000 (11:22 -0700)
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>
jjb/music/build-music-distributed-kv-store-image.sh [new file with mode: 0755]
jjb/music/music-distributed-kv-store.yaml

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 (executable)
index 0000000..d11f053
--- /dev/null
@@ -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
index 0de8a86..f853083 100644 (file)
@@ -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':