From the REST API, how do I specify that the build workspace is cleaned of all files before the build?

I just want to do this on specific builds I'm requesting - don't want it to be part of the agent specification or the build config.  Surely there is a way to do this?

0
1 comment
Hi,

You need to add triggeringOptions to the build payload and specify cleanSources="true" in it. See the example here: https://www.jetbrains.com/help/teamcity/rest/start-and-cancel-builds.html#Rebuild+All+Dependencies

Best regards,
Anton
0

Please sign in to leave a comment.