X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-build.sh;h=0d9d68d5243d174c77a28466e32d0494ebe4bcfc;hb=b55451a53da28d40c62de5cae462302a32fe4c31;hp=dfacdeb7a464d65331fc9c8da7c791e5f7a0222b;hpb=dc4922932780f79df731bc68d4f156f618d2fd25;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-build.sh b/shell/packer-build.sh index dfacdeb7..0d9d68d5 100644 --- a/shell/packer-build.sh +++ b/shell/packer-build.sh @@ -44,8 +44,8 @@ packer.io build -color=false \ # Extract image name from log and store value in the downstream job if [[ ${UPDATE_CLOUD_IMAGE} ]]; then - NEW_IMAGE_NAME=$(grep -P '(\s+.*image: )(ZZCI\s+.*\d+-\d+\.\d+)' "$PACKER_BUILD_LOG" \ - | awk -F': ' '{print $4}')\") + NEW_IMAGE_NAME=$(grep -P '(\s+.*image: )(ZZCI\s+.*\d+-\d+\.\d+)' \ + "$PACKER_BUILD_LOG" | awk -F': ' '{print $4}') echo NEW_IMAGE_NAME="$NEW_IMAGE_NAME" >> "$WORKSPACE/variables.prop" echo "NEW_IMAGE_NAME: ${NEW_IMAGE_NAME}" @@ -53,7 +53,7 @@ if [[ ${UPDATE_CLOUD_IMAGE} ]]; then # Copy variables.prop to variables.jenkins-trigger so that the end of build # trigger can pick up the file as input for triggering downstream jobs. # Dont tigger downstream job when UPDATE_CLOUD_IMAGE is set to 'false' - cp $WORKSPACE/variables.prop $WORKSPACE/variables.jenkins-trigger + cp "$WORKSPACE/variables.prop" "$WORKSPACE/variables.jenkins-trigger" fi # Retrive the list of cloud providers