diff --git a/.circleci/config.yml b/.circleci/config.yml index 3ab04abb03..6d18d36eec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -101,11 +101,6 @@ jobs: name: Login to GitHub command: | echo $AUTH_TOKEN_GITHUB | gh auth login --with-token - - run: - name: Define target branch - command: | - TARGET_BRANCH=$(gh pr view $CIRCLE_PULL_REQUEST --json baseRefName --jq '.baseRefName') - echo "Target Branch: $TARGET_BRANCH" - run: name: Install Sauce Connect command: | @@ -131,13 +126,27 @@ jobs: background: true command: sc run --username ${SAUCE_USERNAME} --access-key ${SAUCE_ACCESS_KEY} --tunnel-name "circleci-tunnel" --region "us-west-1" --proxy-localhost allow - run: + name: Define target branch + command: | + TARGET_BRANCH=$(gh pr view $CIRCLE_PULL_REQUEST --json baseRefName --jq '.baseRefName') + echo "Target Branch: $TARGET_BRANCH" + # Save the variable to BASH_ENV to be able to access it in the next steps + echo "export TARGET_BRANCH=$TARGET_BRANCH" >> $BASH_ENV + - run: + name: Use target branch + command: | + echo "Using target branch: $TARGET_BRANCH" + - run: + name: Prepare and run e2e tests no_output_timeout: 30m command: | + echo "Using target branch: $TARGET_BRANCH" export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" cd /home/circleci/app/Packages/Application/Neos.Neos.Ui nvm install nvm use + echo "Target Branch: $TARGET_BRANCH" make test-e2e-saucelabs - store_artifacts: path: /home/circleci/app/Data/Logs diff --git a/.sauce/config1Dimension.yml b/.sauce/config1Dimension.yml index 519bb7c8eb..f6eeb61ef0 100644 --- a/.sauce/config1Dimension.yml +++ b/.sauce/config1Dimension.yml @@ -9,7 +9,7 @@ sauce: tags: - e2e - $TARGET_BRANCH - build: Release $CI_COMMIT_SHORT_SHA + build: $TARGET_BRANCH tunnel: name: "circleci-tunnel" testcafe: diff --git a/.sauce/config2Dimension.yml b/.sauce/config2Dimension.yml index 3e931b292f..30bc6a38c2 100644 --- a/.sauce/config2Dimension.yml +++ b/.sauce/config2Dimension.yml @@ -8,7 +8,7 @@ sauce: tags: - e2e - $TARGET_BRANCH - build: Release $CI_COMMIT_SHORT_SHA + build: $TARGET_BRANCH tunnel: name: "circleci-tunnel" testcafe: