File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ jobs:
33
33
value : repo-dir
34
34
- name : AzdoRepo
35
35
value : dotnet-aspnetcore
36
- - name : TargetBranchName
37
- value : $(Build.SourceBranchName)-nonstable
38
- - name : BranchToMirror
39
- value : $(Build.SourceBranchName)
40
36
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
41
43
- script : |
42
44
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)
43
45
displayName: Clone AzDO repo
You can’t perform that action at this time.
0 commit comments