Pipeline: Configure Git include regions doesn't work

46 views
Skip to first unread message

John Engelman

unread,
May 19, 2016, 7:11:03 PM5/19/16
to Jenkins Users
I can't seem to figure out how to configure include regions for the Git plugin when defining a pipeline. They don't seem to be adhered to.
This is what I currently have:

checkout([$class: 'GitSCM', branches: [[name: '*/master']],
              userRemoteConfigs: [
                  [url: 'g...@github.com:johnrengelman/infrastructure.git']
                ],
              extensions: [
                  [$class: 'PathRestriction', includedRegions: 'environments/dev/.*', excludedRegions: '']
                ]
            ])

I've also tried the full classpath for 'PathRestriction'.
The pipeline runs regardless of where the changes are.
Reply all
Reply to author
Forward
0 new messages