diff options
author | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-07-29 21:10:32 +0200 |
---|---|---|
committer | Fatih Degirmenci <fatih.degirmenci@ericsson.com> | 2016-08-01 09:49:36 +0200 |
commit | d75d9d1f69f1b0bdc378ed819335e2f3a2c5007c (patch) | |
tree | 5972a1ffa8e5e3d45c8a9050bdaaf0a5f2d1730f /jjb/kvmfornfv/kvmfornfv-download-artifact.sh | |
parent | 421d147193e1ea8917968329ae8d6215975f1ce5 (diff) |
kvmfornfv: Improve patch verification jobs
This change
- changes the kvmfornfv-verify job to multijob so job abortion works when a new
patch for the same change arrives
- creates 2 phase jobs for patchset verification, build and test
- enables artifact upload and download
Change-Id: I9de85e2f223e83e2256aaba831b88b0a879962b5
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/kvmfornfv/kvmfornfv-download-artifact.sh')
-rwxr-xr-x | jjb/kvmfornfv/kvmfornfv-download-artifact.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/jjb/kvmfornfv/kvmfornfv-download-artifact.sh b/jjb/kvmfornfv/kvmfornfv-download-artifact.sh new file mode 100755 index 000000000..24a5e45fe --- /dev/null +++ b/jjb/kvmfornfv/kvmfornfv-download-artifact.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then + JOB_TYPE=${BASH_REMATCH[0]} +else + echo "Unable to determine job type!" + exit 1 +fi + +if [[ "$JOB_TYPE" == "verify" ]]; then + echo "Downloading artifacts for the change $GERRIT_CHANGE_NUMBER. This could take some time..." + GS_URL="gs://artifacts.opnfv.org/review/$GERRIT_CHANGE_NUMBER" +else + echo "Artifact download is not enabled for $JOB_TYPE jobs" + exit 1 +fi + +/bin/mkdir -p $WORKSPACE/build_output +gsutil cp -r $GS_URL/* $WORKSPACE/build_output > $WORKSPACE/gsutil.log 2>&1 + +echo "--------------------------------------------------------" +ls -al $WORKSPACE/build_output +echo "--------------------------------------------------------" + +echo "Downloaded artifacts!" |