Skip to content

Commit cb0246f

Browse files
Update build-all-steps.yml (#20333)
1 parent 88f8fea commit cb0246f

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

ci/build-all-steps.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -150,55 +150,55 @@ steps:
150150
ne(variables['numTasks'], 0)
151151
)
152152
153-
- template: /ci/generate-branch-name.yml@self
154-
parameters:
155-
prefix: releases
156-
157-
- powershell: |
158-
$releaseBranch = "$(branchName)"
159-
160-
# add config entry to avoid errors while pulling
161-
git config --global user.email "$(username)@microsoft.com"
162-
git config --global user.name "$(username)"
163-
164-
Write-Host 'Enabling verbose git tracing..'
165-
git config --global http.verbose true
166-
$env:GIT_TRACE = 1
167-
$env:GIT_CURL_VERBOSE = 1
168-
169-
# Pull commits from remote and push branch to git
170-
git checkout -b $releaseBranch
171-
Write-Host 'Trying to pull the remote branch..'
172-
git pull https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
173-
if (-not $?) {
174-
Write-Host 'Failed to pull the remote branch. This is expected if the remote branch doesn't exist.
175-
}
176-
Write-Host 'Trying to push to the remote branch..'
177-
git push https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
178-
condition: |
179-
and(
180-
succeeded(),
181-
in(variables['build.reason'], 'Schedule', 'Manual'),
182-
eq(variables['COURTESY_PUSH'], 'true'),
183-
eq(variables['Build.SourceBranch'], 'refs/heads/master')
184-
)
185-
displayName: Push release branch
186-
187-
- powershell: |
188-
$releaseBranch = "$(branchName)"
189-
190-
if ($(currentSprintWeek) -eq 3) {
191-
cd $(System.DefaultWorkingDirectory)/ci/ci-release-notes
192-
npm install
193-
node release-notes.js --token $(GitHubPAT) --version $(currentSprint) --releaseBranch $releaseBranch
194-
} else {
195-
echo "Skipping since release notes generating on week 3"
196-
}
197-
condition: |
198-
and(
199-
succeeded(),
200-
in(variables['build.reason'], 'Schedule', 'Manual'),
201-
eq(variables['COURTESY_PUSH'], 'true'),
202-
eq(variables['Build.SourceBranch'], 'refs/heads/master')
203-
)
204-
displayName: Create Release
153+
# - template: /ci/generate-branch-name.yml@self
154+
# parameters:
155+
# prefix: releases
156+
157+
# - powershell: |
158+
# $releaseBranch = "$(branchName)"
159+
160+
# # add config entry to avoid errors while pulling
161+
# git config --global user.email "$(username)@microsoft.com"
162+
# git config --global user.name "$(username)"
163+
164+
# Write-Host 'Enabling verbose git tracing..'
165+
# git config --global http.verbose true
166+
# $env:GIT_TRACE = 1
167+
# $env:GIT_CURL_VERBOSE = 1
168+
169+
# # Pull commits from remote and push branch to git
170+
# git checkout -b $releaseBranch
171+
# Write-Host 'Trying to pull the remote branch..'
172+
# git pull https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
173+
# if (-not $?) {
174+
# Write-Host 'Failed to pull the remote branch. This is expected if the remote branch doesn't exist.
175+
# }
176+
# Write-Host 'Trying to push to the remote branch..'
177+
# git push https://$(GitHubPAT)@github.com/microsoft/azure-pipelines-tasks $releaseBranch
178+
# condition: |
179+
# and(
180+
# succeeded(),
181+
# in(variables['build.reason'], 'Schedule', 'Manual'),
182+
# eq(variables['COURTESY_PUSH'], 'true'),
183+
# eq(variables['Build.SourceBranch'], 'refs/heads/master')
184+
# )
185+
# displayName: Push release branch
186+
187+
# - powershell: |
188+
# $releaseBranch = "$(branchName)"
189+
190+
# if ($(currentSprintWeek) -eq 3) {
191+
# cd $(System.DefaultWorkingDirectory)/ci/ci-release-notes
192+
# npm install
193+
# node release-notes.js --token $(GitHubPAT) --version $(currentSprint) --releaseBranch $releaseBranch
194+
# } else {
195+
# echo "Skipping since release notes generating on week 3"
196+
# }
197+
# condition: |
198+
# and(
199+
# succeeded(),
200+
# in(variables['build.reason'], 'Schedule', 'Manual'),
201+
# eq(variables['COURTESY_PUSH'], 'true'),
202+
# eq(variables['Build.SourceBranch'], 'refs/heads/master')
203+
# )
204+
# displayName: Create Release

0 commit comments

Comments
 (0)