Enable artifact download for genesis/fuel 39/239/1
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 1 Apr 2015 12:40:50 +0000 (14:40 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Wed, 1 Apr 2015 12:40:50 +0000 (14:40 +0200)
JIRA: OCTO-26

Change-Id: I9bb5d35c843393e492e7d33f39128a50b57ecdf0
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/genesis/genesis.yml

index 2a53f7d..790b386 100644 (file)
             gsutil cp opnfv-$BUILD_ID.properties gs://$GS_URL/opnfv-$BUILD_ID.properties
             gsutil cp latest.properties gs://$GS_URL/latest.properties
 
+        - shell: |
+            #!/bin/bash
+            set -o errexit
+            set -o nounset
+            set -o pipefail
+            set -x
+
+            # get the latest.properties file in order to get info regarding latest artifact
+            gsutil cp gs://$GS_URL/latest.properties latest.properties
+
+            # check if we got the file
+            [[ -f latest.properties ]] || exit 1
+
+            # source the file so we get OPNFV vars
+            source latest.properties
+
+            # list OPNFV env vars for info
+            env | grep '^OPNFV'
+
+            # download the file
+            gsutil cp gs://$OPNFV_ARTIFACT_URL $WORKSPACE/opnfv.iso
+
+            # list the file
+            ls -al $WORKSPACE/opnfv.iso
+
 - builder:
     name: opensteak-verify
     builders: