Setting TARGET_BRANCH

This commit is contained in:
Adrien Ferrand 2020-07-01 22:41:30 +02:00
parent 6503d75446
commit 63a5c868fc

View file

@ -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