Skip to content

Commit

Permalink
fixing travis for tagging downstream repo
Browse files Browse the repository at this point in the history
Signed-off-by: mayank <[email protected]>
  • Loading branch information
mayank authored and kmova committed May 6, 2020
1 parent 69ff1a9 commit deb276c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ script:
# go ahead and tag the dependent repo.
#
# $TRAVIS_BRANCH contains the same value as $TRAVIS_TAG.
# Example: 1.9.0-RC1 tag and 1.9.0-RC1 branch.
# OpenEBS release are done from branches named as v1.9.x.
# Example: v1.9.0-RC1 tag and 1.9.0-RC1 branch.
# OpenEBS release are done from branches named as v1.9.x.
# Convert the TRAVIS_TAG to the corresponding release branch.
#
# Allow for building forked openebs pipelines.
Expand All @@ -92,7 +92,7 @@ script:
export REPO_ORG;
fi
- if [ ! -z $TRAVIS_TAG ] && [ "$TRAVIS_REPO_SLUG" == "$REPO_ORG/libcstor" ]; then
REL_BRANCH=$(echo v$(echo "$TRAVIS_TAG" | cut -d'-' -f1 | rev | cut -d'.' -f2- | rev).x) ;
REL_BRANCH=$(echo $(echo "$TRAVIS_TAG" | cut -d'-' -f1 | rev | cut -d'.' -f2- | rev).x) ;
./buildscripts/git-release "$REPO_ORG/cstor" "$TRAVIS_TAG" "$REL_BRANCH" || travis_terminate 1;
fi
after_failure:
Expand Down

0 comments on commit deb276c

Please sign in to comment.