I want to trigger one pipeline from another but it's not clear to me what values I should use for the 'pipeline' and 'source' items under 'pipelines:'.
Is the 'pipeline' value a completely arbitrary name I can make up to define the pipeline resource (e.g., 'security-lib')? In other words I can pretty much call it anything I want because it's not referring to anything else?
But does the value of 'source' have to match the name of the triggering pipeline as listed under Pipelines in the Azure web UI?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@steved0x Same question here, while pipeline seems to be arbitrary name, that can be referenced later, but source is totally unclear.
Is source the
If (1), which I assume - how are conflicts handled if multiple pipelines have the same name (__e.g.__ "security-lib" as in OP)? What is the referenced pipeline is in some directory, like "Toolssecurity-lib"?
So is the resource pipeline name the common name seen by users in DevOps or is it the name of the yaml file that the pipeline is watching?
I have working pipelines triggering other pipelines now. The pipeline value appears to be completely arbitrary. The value of source must match the name of the triggering pipeline as it appears to users in the DevOps UI (e.g., under your-org/your-project/Recent. I've already found that if you rename your triggering pipeline then you must update the value of source to match it or else your pipeline trigger will fail.
Related issue: https://github.com/MicrosoftDocs/vsts-docs/issues/7201
@steved0x Err, why has this been closed please? The docs at https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#pipeline-triggers still look the same to me.
@cacti77 @mcelrojb58 @majusmisiak Sorry I just saw this one, it got closed due to being referenced in a PR that added some more detail to the Pipeline resource schema.
I'm working on the Pipeline triggers section right now and it will have more detail and examples shortly. Sorry for the long delay and thank you.
@cacti77 @mcelrojb58 @majusmisiak I am publishing an update to the article that answers your questions, including what the source element is, what to use for the name (including if it is in a different project or organization).
@steved0x - thank you! That docs entry on pipeline triggers is much clearer now.
Most helpful comment
@steved0x Err, why has this been closed please? The docs at https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml#pipeline-triggers still look the same to me.