From 63a5c868fcc4b25f986b6eff0b36a2c7751b2af3 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 1 Jul 2020 22:41:30 +0200 Subject: [PATCH] Setting TARGET_BRANCH --- .azure-pipelines/templates/steps/tox-steps.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.azure-pipelines/templates/steps/tox-steps.yml b/.azure-pipelines/templates/steps/tox-steps.yml index 0baa78ce0..0b76a9f57 100644 --- a/.azure-pipelines/templates/steps/tox-steps.yml +++ b/.azure-pipelines/templates/steps/tox-steps.yml @@ -51,4 +51,8 @@ steps: AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID) AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY) AWS_EC2_PEM_FILE: $(testFarmPem.secureFilePath) + ${{ if variables['System.PullRequest.TargetBranch'] }}: + TARGET_BRANCH: $(System.PullRequest.TargetBranch) + ${{ if not(variables['System.PullRequest.TargetBranch']) }}: + TARGET_BRANCH: $(Build.SourceBranchName) displayName: Run tox