Fix default platform location to common-packer 91/8391/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 13 Jan 2018 17:03:40 +0000 (12:03 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 13 Jan 2018 17:04:34 +0000 (12:04 -0500)
The default search path should be common-packer and only loading
the local project's version if it exists.

Change-Id: Iae1af0e804806ef99761c2e02a39214443a74b23
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-ciman-packer-merge-centos-java-builder
.jjb-test/expected-xml/gerrit-ciman-packer-merge-centos-mininet
.jjb-test/expected-xml/gerrit-ciman-packer-merge-ubuntu1604-java-builder
.jjb-test/expected-xml/gerrit-ciman-packer-merge-ubuntu1604-mininet
.jjb-test/expected-xml/github-ciman-packer-merge-centos-java-builder
.jjb-test/expected-xml/github-ciman-packer-merge-centos-mininet
.jjb-test/expected-xml/github-ciman-packer-merge-ubuntu1604-java-builder
.jjb-test/expected-xml/github-ciman-packer-merge-ubuntu1604-mininet
shell/packer-build.sh

index e8d7d0d..3569d83 100644 (file)
@@ -387,7 +387,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index bfb817b..a759c4b 100644 (file)
@@ -387,7 +387,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index 26e90b0..ebcd8ae 100644 (file)
@@ -387,7 +387,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index b6dcfe1..052561c 100644 (file)
@@ -387,7 +387,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index 86f2f16..29ded26 100644 (file)
@@ -345,7 +345,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index 9ec70a2..a6da5f9 100644 (file)
@@ -345,7 +345,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index ac8211d..12f74aa 100644 (file)
@@ -345,7 +345,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index b50f1f1..8bf2913 100644 (file)
@@ -345,7 +345,7 @@ mkdir -p &quot;$PACKER_LOGS_DIR&quot;
 export PATH=&quot;${WORKSPACE}/bin:$PATH&quot;
 
 # Prioritize the project's own version of vars if available
-platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
+platform_file=&quot;common-packer/vars/$PACKER_PLATFORM.json&quot;
 if [ -f &quot;$PACKER_PLATFORM&quot; ]; then
     platform_file=&quot;vars/$PACKER_PLATFORM.json&quot;
 fi
index 177bb1c..d3e306f 100644 (file)
@@ -23,7 +23,7 @@ mkdir -p "$PACKER_LOGS_DIR"
 export PATH="${WORKSPACE}/bin:$PATH"
 
 # Prioritize the project's own version of vars if available
-platform_file="vars/$PACKER_PLATFORM.json"
+platform_file="common-packer/vars/$PACKER_PLATFORM.json"
 if [ -f "$PACKER_PLATFORM" ]; then
     platform_file="vars/$PACKER_PLATFORM.json"
 fi