Skip to content

[release pipeline] Compile-time pipeline reference causing build issues #5291

@NikolaMilosavljevic

Description

@NikolaMilosavljevic

With https://dev.azure.com/dnceng/internal/_git/dotnet-release/pullrequest/50753?_a=overview release pipeline's validation leg is failing if a pipeline build version does not exist. Check the source-build-release-validation.yml - the following code is the root cause of the failure:

resources:
  pipelines:
  - pipeline: dotnet-staging-pre10.0
    source: Stage-DotNet-Validate-Publish
    version: ${{ variables.PIPELINE_VERSION }}
  - pipeline: dotnet-staging
    source: Stage-DotNet-Prepare-Artifacts
    version: ${{ variables.PIPELINE_VERSION }}

Previously we always referenced the same pipeline for all releases, but that won't work anymore due to different release pipelines:

resources:
  pipelines:
  - pipeline: dotnet-staging
    source: Stage-DotNet-Validate-Publish
    version: ${{ variables.PIPELINE_VERSION }}

Metadata

Metadata

Assignees

Labels

area-releaseRelease tasks or related issues

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions