How to reset a build parameter in TeamCity without having to click the reset button

Viewed 704

In a TeamCity build configuration, I have added a System parameter with name "system.UploadCdn" and spec as below:

 "checkbox description='UploadCdn' label='UploadCdn' display='prompt' checkedValue='Upload'"

I need to reset this parameter to "Unchecked State" after the build completes without having to click on the Reset link. As per Is there a way to force a default value for a parameter in TeamCity and not lose it once a different value has been set?, I have added a last build step as below.

Runner type: PowerShell Script : Source Code Script Source: ##teamcity[setParameter name='UploadCdn' value=' '] Script execution mode : Execute .ps1 from external file

But it is not working. What am I missing?

0 Answers
Related