我是Jenkins管道脚本的新手,我已将我的FreeStyle项目移至管道,但无法让我的主服务器在进行提交时醒来我的SVN回购。这是我的第一个几行,并宣布我的SVN凭据:轮询SCM:Jenkins管道脚本没有在SVM上醒来提交
node {
try {
notifyBuild('STARTED')
stage('Checkout') {
checkout([$class: 'SubversionSCM',
additionalCredentials: [],
excludedCommitMessages: '',
excludedRegions: '',
excludedRevprop: '',
excludedUsers: 'buildbot',
filterChangelog: false,
ignoreDirPropChanges: false,
includedRegions: '',
locations: [[credentialsId: 'my-login-id-creds-are-here',
depthOption: 'infinity',
ignoreExternalsOption: true,
local: '.',
remote: "http://this.is.myweburl.com/svn/path/to/branch"]],
workspaceUpdater: [$class: 'UpdateUpdater']])
}
有没有办法轮询SCM?
让我知道如果您有任何问题。
谢谢!
谢谢拉里,你知道哪一个文件,我将不得不添加这段代码? – Lgalan90
在你的管道脚本中,当它第一次执行时,它会被创建到你的jenkins版本中。 –
非常好!非常感谢您为我提供参考资料,这些将派上用场。 :) – Lgalan90