我是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