From 8f8245885e0992bfbf46bcc31cd863ff5eaa44ab Mon Sep 17 00:00:00 2001 From: Adam Shimali Date: Tue, 10 May 2016 14:15:38 +0100 Subject: [PATCH] Pass branch name to dependent build --- scripts/trigger-dependent-build.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/trigger-dependent-build.sh b/scripts/trigger-dependent-build.sh index cf1405dfe..389e1c120 100755 --- a/scripts/trigger-dependent-build.sh +++ b/scripts/trigger-dependent-build.sh @@ -7,10 +7,6 @@ # - ./trigger-dependent-build # -# An authorization token generated by running: -# gem install travis -# travis login -# travis token -# +echo "Triggering dependent build for $TRAVIS_BRANCH" -curl -vvv -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $auth_token" -d '{"request":{"branch":"master","config":{"env":{"global":["ENVIRONMENT=preview"]}}}}' https://api.travis-ci.org/repo/alphagov%2Fnotifications-functional-tests/requests +curl -vvv -s -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Travis-API-Version: 3" -H "Authorization: token $auth_token" -d '{"request":{"branch":"master","config":{"env":{"global":["ENVIRONMENT='$TRAVIS_BRANCH'"]}}}}' https://api.travis-ci.org/repo/alphagov%2Fnotifications-functional-tests/requests