Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit 3d86df1

Browse files
authored
Update finish.sh
1 parent 4787c4d commit 3d86df1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

finish.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ then
1212
ENV_ID=`curl -u ""$RANCHER_USER":"$RANCHER_PASS"" -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' "http://rancher.flowz.com:8080/v2-beta/projects?name=Develop" | jq '.data[].id' | tr -d '"'`
1313
echo $ENV_ID
1414
}
15+
elif [ "$TRAVIS_BRANCH" = "staging" ]
16+
then
17+
{
18+
echo "call $TRAVIS_BRANCH branch"
19+
ENV_ID=`curl -u ""$RANCHER_USER":"$RANCHER_PASS"" -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' "http://rancher.flowz.com:8080/v2-beta/projects?name=Staging" | jq '.data[].id' | tr -d '"'`
20+
echo $ENV_ID
21+
}
1522
else
1623
{
1724
echo "call $TRAVIS_BRANCH branch"

0 commit comments

Comments
 (0)