Fix incorrect failure notification in vcpkg publishing (#3838)
* Set up for testing of template pipeline * Override branches, set up for template GA release * More TODOs to prevent merging an unintended change * More removal of TestPipeline * Increment template version number * Use script to set package version * Check out the correct branch * branch parameter in the command * Use $(PublishToVcpkg) to determine if we should check for changes * dictionary syntax * Set GA package version to validate GA publish scenario * Update changelog * create-pull-request.yml optionally pushes changes * Output GH PR URI * Macro syntax with a variable set earlier * Move up to 1.2.0-beta.2 * beta.1 * Revert changelog * Revert testing-related changes * Revert vcpkg-clone.yml * Revert eng/common changes, ensure global $(HasChanges) is set properly * Changes to enable testing * 1.1.0-beta.1 * vcpkg clone should clone at configured branch * Clone "main" branch of vcpkg betas * Undo test-specific changes * More PR cleanup * PR cleanup
This commit is contained in:
parent
584f83c7bd
commit
6c74e576f2
@ -108,7 +108,7 @@ stages:
|
||||
- pwsh: |
|
||||
$branchName = "azure-sdk-for-cpp-${{ artifact.Name }}-$(Build.BuildId)"
|
||||
if ('$(VcpkgForkBranchName)') {
|
||||
Write-Host "Using queue time branch name"
|
||||
Write-Host "Using queue time branch name"
|
||||
$branchName = '$(VcpkgForkBranchName)'
|
||||
}
|
||||
Write-Host "##vso[task.setvariable variable=PrBranchName]$branchName"
|
||||
@ -164,14 +164,12 @@ stages:
|
||||
CommitMsg: Update vcpkg-configuration.json
|
||||
BaseRepoBranch: $(DefaultBranch)
|
||||
|
||||
# Set $(HasChanges) to $true so that
|
||||
# create-pull-request.yml completes the push and PR
|
||||
# submission steps. This is contegnent upon
|
||||
# `$(PublishToVcpkg)` being `true`. `$(PublishToVcpkg)` is
|
||||
# set in `vcpkg-publish.yml`
|
||||
- pwsh: Write-Host "##vso[task.setvariable variable=HasChanges]$true"
|
||||
condition: and(succeeded(), eq(variables['PublishToVcpkg'], 'true'))
|
||||
displayName: Set $(HasChanges) to $true for create-pull-request.yml
|
||||
# Set $(HasChanges) to $(PublishToVcpkg) so that
|
||||
# create-pull-request.yml creates or does not create a PR
|
||||
# based on the deicision of the step that determines
|
||||
# whether to publish to vcpkg.
|
||||
- pwsh: Write-Host "##vso[task.setvariable variable=HasChanges]$(PublishToVcpkg)"
|
||||
displayName: Set $(HasChanges) to $(PublishToVcpkg) for create-pull-request.yml
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
|
||||
parameters:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user