I am new to spinnaker and started writing pipeline templates for all tools and applications in our organization. In one scenario I have to run a pipeline from another pipeline and I want both pipelines to need to be templated so that I can create pipelines based on the deployment environment.
But when I am referring the pipeline from the calling pipeline I have to map the ID of the pipeline.
{
...
{
"application": "app-stack",
"failPipeline": true,
"name": "Run pipeline",
"pipeline": "615da201-9652-4ce2-8039-21163d5f99d4",
"pipelineParameters": {},
"refId": "6",
"requisiteStageRefIds": [
"5"
],
"type": "pipeline",
"waitForCompletion": true
}
],
"triggers": [],
"updateTs": "1578057441000"
}
}
In the above template, I am referring to the pipeline ID. But how can I make it to dynamic so that it can be templated.