首页 > 解决方案 > 如何停止 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']]])
    }
}

标签: jenkinssvn

解决方案


推荐阅读