fuel: cann't find latest.properties 03/24303/4
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Mon, 14 Nov 2016 02:55:55 +0000 (10:55 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 15 Nov 2016 09:46:01 +0000 (09:46 +0000)
See https://build.opnfv.org/ci/job/fuel-deploy-zte-pod1-daily-colorado/76/console

latest.properties is downloaded under $WORKSPACE.
Use absolute path  $WORKSPACE/latest.properties in these two sentence.
local test is OK.

JIRA: FUEL-225

Change-Id: I37cf3835c56f44cee31a8814b4af1e71c8d1cc6a
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
jjb/fuel/fuel-download-artifact.sh

index 5685444..3f691d8 100755 (executable)
@@ -24,10 +24,10 @@ else
 fi
 
 # check if we got the file
-[[ -f latest.properties ]] || exit 1
+[[ -f $WORKSPACE/latest.properties ]] || exit 1
 
 # source the file so we get artifact metadata
-source latest.properties
+source $WORKSPACE/latest.properties
 
 # echo the info about artifact that is used during the deployment
 OPNFV_ARTIFACT=${OPNFV_ARTIFACT_URL/*\/}