jenkins - 如何停止 Jenkins 轮询 SVN 源代码控制?
问题描述
我有一个 Jenkins 服务器来构建我们的项目,并且有一个数据部分可以从源代码控制 (SVN) 中签出。我对其进行了更改以试图阻止它包含在源代码控制轮询中(轮询:false),但是我可以看到对存储库的更改仍在触发构建。
我在这里的语法正确吗?我添加了“poll:false”,但它被忽略了。
stage('Data Checkout')
{
dir('E:\\workspace\\data')
{
checkout([
poll: false,
scm: [$class: 'SubversionSCM',
additionalCredentials: [],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: '',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[credentialsId: 'xxx',
depthOption: 'infinity',
ignoreExternalsOption: true,
local: 'local',
remote: "svn://xxx/data"]],
workspaceUpdater: [$class: 'UpdateUpdater']]])
}
}
解决方案
推荐阅读
- ios - 有没有办法将主项目导入 iMessage 扩展?
- c++ - 通过位操作获取函数中的值
- android - 如何在 JUnit 4 和 Kotlin for Android 中创建参数化测试用例?
- css - /deep/ OR ::ng-deep 的长期替代解决方案是什么?
- python - 从列表中提取某些值
- r - 从“finalfit”表中提取模型系数
- processing - 处理第 508 节是否合规?
- facebook - Facebook 图形 API - 3.2
- python - 用于 django 命令的带有双引号和空格的 Python 子进程
- java - 使用 Math.max 仅替换负数