Skip to content

Commit

Permalink
Merge pull request #2155 from Niklaus-xie/9.10.5-stable-fix-tra-1120
Browse files Browse the repository at this point in the history
[OPENSTACK-2928] add *-stable branch check
  • Loading branch information
Niklaus-xie authored Nov 20, 2023
2 parents fc6e6a1 + 310da3d commit 4a84363
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ script:
# pzhang: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
- f5-openstack-agent-dist/scripts/test_install.sh "ubuntu" "14.04" ${PKG_RELEASE_1404}
- |
if [[ "$TRAVIS_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]* ]]; then
if [[ "$TRAVIS_BRANCH" == *"-stable" ]]; then
export CTLR_VERSION=v$(echo $TRAVIS_BRANCH | sed s/-stable//g)
elif [[ "$TRAVIS_BRANCH" =~ ^v[0-9]+\.[0-9]+\.[0-9]* ]]; then
va=( ${TRAVIS_BRANCH//./ } ) # replace decimals and split into array
export CTLR_VERSION="${va[0]}.${va[1]}.${va[2]}"
else
export CTLR_VERSION=$TRAVIS_BRANCH
fi
- echo $TRAVIS_BRANCH
- echo $CTLR_VERSION

after_success:
- md5sum ${PKG_RELEASE_EL7} > ${PKG_RELEASE_EL7}.md5 && md5sum --check ${PKG_RELEASE_EL7}.md5
Expand Down

0 comments on commit 4a84363

Please sign in to comment.