Export packer binary dir in $PATH 61/9461/1
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 15 Mar 2018 12:55:28 +0000 (22:55 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Thu, 15 Mar 2018 21:47:49 +0000 (07:47 +1000)
Add packer binary path to $PATH to avoid packer being
installed multiple times in builder merge jobs.

JIRA: RELENG-838
Change-Id: Ie414ff39d0829135cc797b187f693930cf45c6d5
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
shell/packer-install.sh

index dc43e32..8b3ef6d 100644 (file)
@@ -15,6 +15,7 @@ echo "---> packer-install.sh"
 # $PACKER_VERSION        : Define a packer version passed as job paramter
 
 PACKER_VERSION="${PACKER_VERSION:-1.1.3}"
+export PATH="${WORKSPACE}/bin:$PATH"
 
 # Ensure we fail the job if any steps fail.
 set -eu -o pipefail