Apply given unique docker tag to image 57/114757/1
authorLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Mon, 9 Nov 2020 16:41:34 +0000 (18:41 +0200)
committerLasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Tue, 10 Nov 2020 13:00:05 +0000 (15:00 +0200)
 - add input parameter to docker job and pass it to the build script
   (which has the requirement to use it to use it to tag any images
   it creates and pushes to Nexus)
 - this commit has no practical effect on music docker build until
   https://gerrit.onap.org/r/c/music/distributed-kv-store/+/114637
   is merged

Issue-ID: INT-1760
Signed-off-by: Lasse Kaihlavirta <l.kaihlavirt@partner.samsung.com>
Change-Id: I7ed89081e7d399c46ec875659d4c022a85dbce54

jjb/global-templates-golang.yaml
jjb/integration/integration-macros.yaml
jjb/music/build-music-distributed-kv-store-image.sh

index 4d48b87..c85c74a 100644 (file)
           branch: '{branch}'
           refspec: 'refs/heads/{branch}'
           artifacts: '{archive-artifacts}'
-
+      - integration-unique-docker-tag:
+          unique-docker-tag: ''
     scm:
       - gerrit-trigger-scm:
           refspec: ''
index a6d3695..d485b8e 100644 (file)
           default: '{terragrunt-version}'
           description: 'Terragrunt version to install on minion'
 
+- parameter:
+    name: integration-unique-docker-tag
+    parameters:
+     - string:
+          name: UNIQUE_DOCKER_TAG
+          default: '{unique-docker-tag}'
+          description: 'Unique docker tag to identify specific version'
+
 - builder:
     name: integration-install-robotframework
     builders:
index d11f053..69a7785 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/bash
 
 echo '============== CALLING SCRIPT TO BUILD DOCKER IMAGES ================='
+echo "============== Unique docker tag: ${UNIQUE_DOCKER_TAG}"
 CURRENTDIR="$(pwd)"
 echo $CURRENTDIR
 
 chmod 755 ./deployment/*.sh
 cd ./deployment
-./docker-build.sh
+./docker-build.sh ${UNIQUE_DOCKER_TAG}