Add registry to complete the docker image name 28/328/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 12 Jun 2019 17:17:21 +0000 (13:17 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Wed, 12 Jun 2019 17:17:21 +0000 (13:17 -0400)
Revise the extract-deb script to use the fully qualified
docker image name, which includes the container push registry

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ia42d9cb86ad25b3677963a551cd69073dad1b05e

jjb/ric-plt-lib-rmr/shell/copy-rmr-packages.sh

index 1fa1e04..e15a1e2 100755 (executable)
@@ -25,9 +25,9 @@ echo "--> copy-rmr-packages.sh"
 # with path(s) to the generated artifact(s)
 file="/tmp/rmr_deb_path"
 
-# Create a container from the build image by running a trivial command.
-# DOCKER_NAME and DOCKER_IMAGE_TAG are injected by previous steps
-container=$(docker run -d "$DOCKER_NAME":"$DOCKER_IMAGE_TAG" ls "$file")
+# create a container from the image by running a trivial command
+# environment variables are injected in previous Jenkins steps
+container=$(docker run -d "$CONTAINER_PUSH_REGISTRY"/"$DOCKER_NAME":"$DOCKER_IMAGE_TAG" ls "$file")
 docker logs "$container"
 docker cp "$container:$file" .
 filebase=$(basename "$file")