diff options
author | Julien Carsique <julien.carsique@sonarsource.com> | 2023-12-27 19:01:16 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-01-23 20:04:15 +0000 |
commit | d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e (patch) | |
tree | a97d938a49630b8ed3c61ccc22dbb8eb52978deb /.travis/setup_environment.sh | |
parent | 29f0fde0bf04408dd3c35d5122bacda8289e6926 (diff) | |
download | sonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.tar.gz sonarqube-d26c2ca7db6af4b2cfc24d3f560e5354d0692f9e.zip |
BUILD-3755 migrate Travis to Cirrus CI
Diffstat (limited to '.travis/setup_environment.sh')
-rwxr-xr-x | .travis/setup_environment.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/.travis/setup_environment.sh b/.travis/setup_environment.sh deleted file mode 100755 index 2f11f417551..00000000000 --- a/.travis/setup_environment.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# Sets up the environment to be able to send notifications to burgr -# use generic environments to remove coupling with Travis ; see setup_promote_environment - -export GITHUB_REPO=${TRAVIS_REPO_SLUG} -export BUILD_NUMBER=$TRAVIS_BUILD_NUMBER -export PIPELINE_ID=${BUILD_NUMBER} -if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - export GIT_SHA1=${TRAVIS_COMMIT} # $CIRRUS_CHANGE_IN_REPO - export GIT_BRANCH=$TRAVIS_BRANCH - export STAGE_TYPE="branch" - export STAGE_ID=${GIT_BRANCH} -else - export GIT_SHA1=${TRAVIS_PULL_REQUEST_SHA} - export GIT_BRANCH=$TRAVIS_PULL_REQUEST_BRANCH - export PULL_REQUEST_BASE_BRANCH=$TRAVIS_BRANCH - export PULL_REQUEST_NUMBER=$TRAVIS_PULL_REQUEST - export STAGE_TYPE="pr_number" - export STAGE_ID=${PULL_REQUEST_NUMBER} -fi -echo "======= SHA1 is ${GIT_SHA1} on branch '${GIT_BRANCH}'. Burgr stage '${STAGE_TYPE} with stage ID '${STAGE_ID} =======" |