Я вижу проблему с использованием исключенного региона / включенного региона в конвейере: плагин проверки SCM step Checkout. Мой конвейерный скрипт клонирует код из нескольких репо. Тем не менее, я не хочу, чтобы работа была запущена для изменений во всех этих репо. Поэтому, чтобы подавить изменения формы сборки в одном из репо, я попытался использовать расширения. Но, похоже, эта функция не работает должным образом.
В моем конвейерном скрипте есть следующий код:
dir ('script') {dir ('script') {
checkout([
$class : 'GitSCM',
branches : [[name: '*/master']],
extensions : [
[$class: 'PathRestriction', excludedRegions: ''],
[$class: 'CleanBeforeCheckout'],
[$class: 'DisableRemotePoll']
],
userRemoteConfigs: [[
credentialsId: '12345-xxxxx',
name : 'origin',
refspec : '+refs/heads/:refs/remotes/origin/+refs/pull/*:refs/remotes/origin/pr/ *',
url : 'https://wwwin-github.company.com/myrepo/mycode'
]]
])
}```
With the above code, I am under impression that the all changes will be excluded as I kep "excludedRegions" as empty. I have also added '$class:DisableRemotePoll' to see if that works. None of the above could prevent the build for any changes in the repo.
Could someone pls guide me on how to suppress triggering builds for any repo that I clone in my pipeline script?
Thanks
-hyvrt