In the cfg file of the pipeline we have a variable called previous-pipelineyaml (not sure of the syntax), and we use that value in the function addTrigger of the pipepline generator, in that funciton we have a case and we add or remove substitution variable depending on that.
TO-DO:
1- use the flags already existing of build-pipeline-name, test-pipeline-name etc... to get the variable previous-pipeline-name
2 - in the function addTrigger, make the definition of subsitution dynamic, not use a case
In the cfg file of the pipeline we have a variable called previous-pipelineyaml (not sure of the syntax), and we use that value in the function addTrigger of the pipepline generator, in that funciton we have a case and we add or remove substitution variable depending on that.
TO-DO:
1- use the flags already existing of build-pipeline-name, test-pipeline-name etc... to get the variable previous-pipeline-name 2 - in the function addTrigger, make the definition of subsitution dynamic, not use a case