Fix annotate-eol-digests pipeline missing parameters for new pipeline system
The annotate-eol-digests pipeline was failing to run in Azure DevOps with the following error:
Encountered error(s) while parsing pipeline YAML:
A value for the 'sourceBuildPipelineRunId' parameter must be provided.
/eng/pipelines/templates/variables/image-builder.yml (Line: 13, Col: 10): Key not found 'sourceBuildPipelineRunId'
This occurred because the pipeline hadn't been migrated to work with the new pipeline system that requires specific parameter passing patterns.
Root Cause
The pipeline was missing two required parameters:
-
sourceBuildPipelineRunId- Required by thetemplates/variables/image-builder.ymltemplate but not provided by the pipeline -
acr- Required by theannotate-eol-digests.ymlstep template but not passed from the pipeline
Solution
Added the missing parameters to align with the new pipeline system requirements:
-
Added
sourceBuildPipelineRunIdparameter with default value$(Build.BuildId), consistent with other pipelines in the repository -
Added
acrparameter configuration to theannotate-eol-digestsstep with proper ACR settings:- Server reference:
$(acr.server) - Repository prefix:
"public/" - Service connection details from the publish service connection variables
- Server reference:
These changes follow the same patterns used in other working pipelines like dotnet-buildtools-image-builder-official.yml and ensure the pipeline can execute successfully in the new pipeline system.
Validation
- ✅ Template parameter requirements are now satisfied
- ✅ Command arguments match expected
AnnotateEolDigestsCommandparameters - ✅ YAML syntax validated
- ✅ Consistent with existing pipeline patterns in the repository
Original prompt
This section details on the original issue you should resolve
<issue_title>annotate-eol-digests pipeline not migrated to new pipeline system</issue_title> <issue_description>The annotate-eol-digests pipeline fails to run in AzDO. It will get the following error:
Encountered error(s) while parsing pipeline YAML: A value for the 'sourceBuildPipelineRunId' parameter must be provided. /eng/pipelines/templates/variables/image-builder.yml (Line: 13, Col: 10): Key not found 'sourceBuildPipelineRunId'It's also missing some required parameters that need to be passed to https://github.com/dotnet/docker-tools/blob/main/eng/common/templates/steps/annotate-eol-digests.yml</issue_description>
Comments on the Issue (you are @copilot in this section)
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.