排队时如何使用自托管代理清理构建 [英] How to clean build using self-hosted agent when queuing

查看:95
本文介绍了排队时如何使用自托管代理清理构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure DevOps 中使用git源存储库-什么是

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?

获取源下有UX支持此功能-但您不能为值分配自己的自定义变量-对于 Clean 清洁选项字段.

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.

推荐答案

迷迷糊糊声明Build.Clean已弃用-但文档尚不清楚Build.Repository.Clean现在是其后继者.这似乎对我有用:

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:

注意:我可以确认Build.Clean = true不再起作用.

Note: I can confirm Build.Clean = true doesn't work anymore.

DevOps自托管代理是OSS -因此

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.

这篇关于排队时如何使用自托管代理清理构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆