In a pipeline script, can you change the value of a 'Pipeline Variable' ?

Copper Contributor

Pipeline Variable" = a variable that you set in UI\triggers\variables (not declared or set in the pipeline script)


We have a 'Release' variable that is passed to the build pipeline. Normally set to '0'. When it is time to build a release (tagging etc.), we set this variable to the release number (1,2, etc.), and then run the pipeline. In the pipeline script, if this Release variable is NOT set to '0' (1 or greater), then release specific things happen. Right now, right after the pipeline has run, we manually reset the Release variable back to '0'.


What we want to do (if possible), is in that release specific part of the pipeline code, is to reset that UI\Triggers\Release variable back top '0', instead of having to remember to do this, and then do it. I have not been able to find any documentation that says that this can be done. Can it be done?

0 Replies