X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-install.sh;h=feecf05f9c853912b007cef5626bf676aa56249c;hb=32872573cb431a8479e75d159350b8184bb9d62e;hp=eb303f6e0416e5d01053ab2506a4fd9d28f2bbf8;hpb=98f414a8e0c4a5977d05dd97b09399fcbeaae74d;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-install.sh b/shell/packer-install.sh index eb303f6e..feecf05f 100644 --- a/shell/packer-install.sh +++ b/shell/packer-install.sh @@ -14,20 +14,18 @@ echo "---> packer-install.sh" # $PACKER_VERSION : Define a packer version passed as job paramter -PACKER_VERSION="${PACKER_VERSION:-1.0.2}" +PACKER_VERSION="${PACKER_VERSION:-1.1.3}" # Ensure we fail the job if any steps fail. set -eu -o pipefail -# Default packer binary made available on the build image -packer_bin="/usr/local/bin/packer.io" -if hash "$packer_bin" 2>/dev/null; then +if hash packer.io 2>/dev/null; then echo "packer.io command is available." else echo "packer.io command not is available. Installing packer ..." # Installs Hashicorp's Packer binary, required for verify & merge packer jobs pushd packer - wget "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip" + wget -nv "https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_amd64.zip" mkdir -p "${WORKSPACE}/bin" unzip "packer_${PACKER_VERSION}_linux_amd64.zip" -d ${WORKSPACE}/bin/ # rename packer to avoid conflict with binary in cracklib