Reputation: 31651
Using a git source repo in Azure DevOps - what is the proper way to clean all directories, sources, sources directory, etc. when queuing a new build?
There is UX under Get Sources that supports this - but you can't assign your own custom variables for the values - it's a static dropdown for both Clean and Clean options fields.
Upvotes: 3
Views: 2623
Reputation: 31651
Stumbled across this docs posting, but it states Build.Clean
is deprecated - but the docs aren't clear that Build.Repository.Clean
is now the successor. This is what seemed to work for me:
Note: I can confirm
Build.Clean = true
doesn't work anymore.
The DevOps self-hosted agent is OSS - so I was able to confirm support for this undocumented flow using Build.Repository.Clean
. I don't believe there is a way to assign the clean options at queue-time though.
Upvotes: 3