summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-16 16:28:42 -0700
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-20 11:22:33 -0700
commit1ea43bb50f66884b93a0cfe13eb9600192ebfa19 (patch)
tree94fbd180a71ecbc2343a0fa09fec599ddb447268
parent29f6c65d525e8b5b82532df20177be7130dd378d (diff)
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>
-rwxr-xr-xjjb/music/build-music-distributed-kv-store-image.sh9
-rw-r--r--jjb/music/music-distributed-kv-store.yaml3
2 files changed, 12 insertions, 0 deletions
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 000000000..d11f0534d
--- /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 0de8a8665..f85308324 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':