diff options
author | 2018-09-28 15:09:31 -0400 | |
---|---|---|
committer | 2018-09-28 15:09:31 -0400 | |
commit | fca363d44c64cbdf5484f30c21d901de5ee8c368 (patch) | |
tree | 33990653f124df5c48c41f3221f295c3dc482f20 /jjb/apex/apex-download-artifact.sh | |
parent | f836a454d1ef4ac2375dd13694227764af433755 (diff) |
Apex: Fixes branch checking
With the move to upstream artifacts post-fraser the checks to use
upstream artifacts were relying on BRANCH == 'master'. This doesn't
scale as we preserve fraser functionality but add more branches like
gambia. Therefore inversing the logic to accomodate for new branches.
Change-Id: Ice17f6afd33744f44d253d320a194c3f6d02d8bf
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'jjb/apex/apex-download-artifact.sh')
-rwxr-xr-x | jjb/apex/apex-download-artifact.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/apex/apex-download-artifact.sh b/jjb/apex/apex-download-artifact.sh index e1e51b3b6..10efbe1a2 100755 --- a/jjb/apex/apex-download-artifact.sh +++ b/jjb/apex/apex-download-artifact.sh @@ -18,8 +18,8 @@ else fi if [[ "$ARTIFACT_VERSION" =~ dev ]]; then - if [ "$BRANCH" == 'master' ]; then - echo "Skipping download of artifacts for master branch" + if [[ "$BRANCH" != 'stable/fraser' ]]; then + echo "Skipping download of artifacts for master/gambia branch" else # dev build GERRIT_PATCHSET_NUMBER=$(echo $GERRIT_REFSPEC | grep -Eo '[0-9]+$') |