arcus-azure / arcus.scripting

Scripting with Microsoft Azure in a breeze.
https://scripting.arcus-azure.net/
MIT License
9 stars 11 forks source link

More flexibility on retaining DevOps runs. #382

Closed fgheysels closed 1 year ago

fgheysels commented 1 year ago

A while ago, we've created a script that allows you to retain your DevOps pipeline run. (Save-AzDevOpsBuild). When running this script, the pipeline run is retained indefinely. This is hard-coded in the script.

I think it would be useful to have the possibility to let the caller decide how long the run should be retained. We can do this by adding an additional (optional) parameter that allows the caller to specfiy the request body that must be used. When this new parameter is not specified, we can just fall back to our existing functionality.

More info can be found here