diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-08-22 13:20:17 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-08-22 13:21:15 +0200 |
commit | 6a2f3c5a315dc6a306c7ee94dc18a16daab2bd55 (patch) | |
tree | e30b8facab6948f9d99b3b4445017dfc56380e43 /jjb/armband | |
parent | d376b8ce2d24b67338c13fe6eedebf059fb74c29 (diff) |
armband: 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.
Change-Id: Ic744c779ddc670cc2b9bcea111d28fd97f76af67
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'jjb/armband')
-rwxr-xr-x | jjb/armband/build.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/armband/build.sh b/jjb/armband/build.sh index 0d357576b..300306f77 100755 --- a/jjb/armband/build.sh +++ b/jjb/armband/build.sh @@ -29,8 +29,10 @@ if [[ "$JOB_NAME" =~ "daily" ]]; then echo "Checking to see if we already built and stored Armband 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 |