jenkins - 詹金斯:mercurial scm:clean = false 没有按预期工作
问题描述
编辑:似乎 MercurialSCM 插件update
对使用该--clean
选项进行了硬编码。看到这条线。任何人有任何想法是什么想法?
我的 Jenkinsfile 中有以下结帐步骤:
checkout([
scm: [
$class: "MercurialSCM",
source: "ssh://hg@bitbucket.org/xxxxx/${repo}",
credentialsId: "jenkins",
revision: params[branch] ? params[branch] : "default",
subdir: (repo == "f8_root") ? "" : "aarch64/${repo}",
clean: false,
],
poll: true,
])
的参数clean
设置为false
。update
但是,该插件似乎仍然发出--clean
选项。从日志中:
[Pipeline] checkout
[f8_fw] $ hg showconfig paths.default
[f8_fw] $ hg pull --rev feature/test-framework
pulling from ssh://hg@bitbucket.org/doblesc/f8_fw
no changes found
[f8_fw] $ hg update --clean --rev feature/test-framework
我怎样才能解决这个问题?
解决方案
推荐阅读
- c++ - 使用Qt将javascript转储数组解析为点列表
- java - 对抽象方法执行通用初始化步骤
- mysql - 使用 selectizeGroupUI 创建数据输入表单以将数据输入数据表 (SQL)
- google-apps-script - 从 GAS 请求 WebApp(在 GSheets 中)
- angular - 用管道加载的 img src 未知
- kotlin - Unit 和 { } 的区别
- python - Pandas:在索引之后获取第一个值(不取决于索引类型)
- python - Python:Tkinter 按钮没有出现
- angular - 部署时缺少 Angular Material 组件
- javascript - GET 请求返回 index.html 文档而不是 json 数据