File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ stages:
55
55
$createBranchPath = Join-Path "$(Build.SourcesDirectory)" '.azure-pipelines' 'PipelineSteps' 'BatchGeneration' 'create-branch.ps1'
56
56
& $createBranchPath -Owner 'Azure' -Repo 'azure-powershell' -BaseBranch "$(GenerationBaseBranch)" -NewBranch $generationBranch -Token $token
57
57
Write-Host "##vso[task.setvariable variable=GenerationBranch;isOutput=true]$generationBranch"
58
+ Write-Host "Current branch right after creating generation branch: $(git rev-parse --abbrev-ref HEAD)"
59
+
60
+ $sourceBranchName = "$(Build.SourceBranch)".Replace('refs/heads/', '')
61
+ git checkout $sourceBranchName
62
+ Write-Host "Current branch right after checkout source branch: $(git rev-parse --abbrev-ref HEAD)"
63
+
58
64
59
65
- task : PowerShell@2
60
66
name : version
@@ -76,6 +82,7 @@ stages:
76
82
targetType : inline
77
83
pwsh : true
78
84
script : |
85
+ Write-Host "Current branch: $(git rev-parse --abbrev-ref HEAD)"
79
86
$prepareModulesPath = Join-Path "$(Build.SourcesDirectory)" '.azure-pipelines' 'PipelineSteps' 'BatchGeneration' 'prepare.ps1'
80
87
& $prepareModulesPath -RepoRoot "$(Build.SourcesDirectory)" -MaxParallelJobs "${{ variables.MaxParallelGenerateJobs }}"
81
88
You can’t perform that action at this time.
0 commit comments