summaryrefslogtreecommitdiffstats
path: root/jjb/fuel/fuel-build.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-03-17 18:38:08 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-03-17 18:39:17 +0100
commitcb0dfb22a21a2655d6b649d765f548a03f9db9d2 (patch)
treeff8da3738c8ded419e38f0839fc271c8511ae654 /jjb/fuel/fuel-build.sh
parent5ec149c67c579a99ac78c56232c4a3b911b93793 (diff)
fuel: fix daily build without properties file
For the first time the daily build is ran, the properties file for the latest ISO built is not present. JIRA: FUEL-262 Change-Id: I842668bfde4c84cd3ba31571df274633ae238a90 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb/fuel/fuel-build.sh')
-rwxr-xr-xjjb/fuel/fuel-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/fuel/fuel-build.sh b/jjb/fuel/fuel-build.sh
index c66dc3d8d..e1a4c0267 100755
--- a/jjb/fuel/fuel-build.sh
+++ b/jjb/fuel/fuel-build.sh
@@ -25,8 +25,10 @@ if [[ "$JOB_NAME" =~ "daily" ]]; then
echo "Checking to see if we already built and stored Fuel ISO for this commit"
curl -s -o $LATEST_ISO_PROPERTIES http://$GS_URL/latest.properties 2>/dev/null
+fi
- # get metadata of latest ISO
+# get metadata of latest ISO
+if grep -q OPNFV_GIT_SHA1 $LATEST_ISO_PROPERTIES 2>/dev/null; then
LATEST_ISO_SHA1=$(grep OPNFV_GIT_SHA1 $LATEST_ISO_PROPERTIES | cut -d'=' -f2)
LATEST_ISO_URL=$(grep OPNFV_ARTIFACT_URL $LATEST_ISO_PROPERTIES | cut -d'=' -f2)
else