Skip to content

Commit

Permalink
fix(travis): failure in travis while creating branch like v1.4.x (#43)
Browse files Browse the repository at this point in the history
Signed-off-by: mayank <[email protected]>
  • Loading branch information
mynktl authored and vishnuitta committed Nov 7, 2019
1 parent dace6ff commit b6f0177
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ script:
- make container
- kubectl cluster-info
- |
if [ -z $TRAVIS_BRANCH ] || [ $TRAVIS_BRANCH == "master" ]; then
vR=`echo $TRAVIS_BRANCH |awk -F 'velero_' '{print $2}'`
if [ -z $TRAVIS_BRANCH ] || [ $TRAVIS_BRANCH == "master" ] || [ -z $vR ]; then
export VELERO_RELEASE=v1.0.0
export OPENEBS_RELEASE="1.1.0"
# In travis we use openebs operator from openebs/openebs:master only.
export OPENEBS_RELEASE="master"
else
vR=`echo $TRAVIS_BRANCH |awk -F 'velero_' '{print $2}'`
export VELERO_RELEASE=v${vR}
oR=`echo $TRAVIS_BRANCH |awk -F '-' '{print $1}'`
export OPENEBS_RELEASE=${oR}
Expand Down

0 comments on commit b6f0177

Please sign in to comment.