【问题标题】:How to clean build using self-hosted agent when queuing排队时如何使用自托管代理清理构建
【发布时间】:2019-04-17 04:31:52
【问题描述】:

Azure DevOps 中使用 git 源代码库 - proper way to clean all directories, sources, sources directory, etc 是什么。排队新构建时?

Get Sources 下的 UX 支持此功能 - 但您不能为这些值分配自己的自定义变量 - 它是 CleanClean 的静态下拉列表strong>清理选项 字段。

【问题讨论】:

标签: git github azure-devops azure-pipelines


【解决方案1】:

偶然发现across this docs posting,但它states Build.Clean is deprecated - 但文档并不清楚Build.Repository.Clean 现在是继任者。这似乎对我有用:

仅清洁来源

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

DevOps self-hosted agent is OSS - 所以I was able to confirm support for this undocumented flow using Build.Repository.Clean。我不相信有一种方法可以在排队时分配干净的选项。

【讨论】:

    猜你喜欢
    • 2020-12-21
    • 2021-03-15
    • 1970-01-01
    • 2021-02-20
    • 1970-01-01
    • 2020-06-08
    • 1970-01-01
    • 1970-01-01
    • 2016-10-24
    相关资源
    最近更新 更多