Add support for pipeline resources with sourceId in YAML parsing #5283
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for specifying pipeline resources by ID instead of just by name/path in Azure Pipelines YAML, addressing a long-standing community request.
Problem
Currently, pipeline resources must be specified using the pipeline name and path:
This creates fragility when pipelines are renamed or moved, breaking dependent pipeline definitions.
Solution
Added support for specifying pipeline resources by their stable ID:
Implementation
Enhanced YAML Parser:
YamlConstants.cswith new constants:Pipeline,Pipelines,Source,SourceIdConverterUtil.processes.csto parse nested pipeline resource structureKey Design Decisions:
pipelines:section for clarityrepoandendpointtypessourceandsourceIdproperties are supported, allowing gradual migrationTesting:
Backward Compatibility
100% backward compatible - all existing YAML definitions continue to work unchanged:
Benefits
Fixes #5282.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
03nvsblobprodwcus014.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)055vsblobprodwcus02.vsblob.vsassets.iodotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)1g1vsblobprodwcus01.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)3eavsblobprodwcus03.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)3zgvsblobprodwcus024.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)40qvsblobprodwcus022.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)4fdvsblobprodwcus012.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)5tbvsblobprodwcus06.vsblob.vsassets.iodotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)61cvsblobprodwcus010.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)73dvsblobprodwcus07.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)8usvsblobprodwcus011.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)9owvsblobprodwcus020.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)arpvsblobprodwcus017.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)crcvsblobprodwcus021.vsblob.vsassets.iodotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)fslvsblobprodwcus015.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)grnvsblobprodwcus04.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)uubvsblobprodwcus018.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)vwmvsblobprodwcus016.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)xlkvsblobprodwcus023.vsblob.vsassets.iodotnet build src/Agent.Listener/Agent.Listener.csproj --verbosity quiet(dns block)dotnet test src/Test/Test.csproj --filter PipelineParserL0 --verbosity quiet(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.