Skip to content

Commit d5d443e

Browse files
committed
Merge in 'release/6.0' changes
2 parents a230c58 + 5e9a29f commit d5d443e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.azure/pipelines/azure-pipelines-mirror-within-azdo.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
value: repo-dir
3434
- name: AzdoRepo
3535
value: dotnet-aspnetcore
36-
- name: TargetBranchName
37-
value: $(Build.SourceBranchName)-nonstable
38-
- name: BranchToMirror
39-
value: $(Build.SourceBranchName)
4036
steps:
37+
- powershell: |
38+
$branch = "$(Build.SourceBranch)".Replace("refs/heads/", "");
39+
$suffix = "-nonstable"
40+
Write-Host "##vso[task.setvariable variable=BranchToMirror]$branch"
41+
Write-Host "##vso[task.setvariable variable=TargetBranchName]$branch+$suffix"
42+
displayName: Calculate Mirrored Branch Names
4143
- script: |
4244
git clone https://dn-bot:$(dn-bot-dnceng-build-rw-code-rw)@dev.azure.com/dnceng/internal/_git/$(AzdoRepo) $(WorkingDirectoryName) --recursive --no-tags --branch $(TargetBranchName)
4345
displayName: Clone AzDO repo

0 commit comments

Comments
 (0)