Discussion:
Pipeline checkout GitSCM includedRegions
Manny DaSilva
2017-05-22 19:37:28 UTC
Permalink
Jenkins ver. 2.61
Pipeline checkout GitSCM.

I'm new to Jenkins Pipeline. Regarding code as follows. I would like to
have multiple include regions for Git SCM polling.
I'm unable to determine the right syntax. How would I add an additional
included region?

checkout (scm: [$class: 'GitSCM',
branches: [[name: 'mybranch']],
browser: [$class: 'FisheyeGitRepositoryBrowser',
repoUrl: 'https://crucible.mycompany.com:8445/browse/myrepo/'],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', depth: 0, honorRefspec: true, noTags:
true, reference: '', shallow: false],
[$class: 'RelativeTargetDirectory', relativeTargetDir:
'mytarget'],
[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' ]
],
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Waite
2017-05-22 20:41:34 UTC
Permalink
Pipeline does not support include or exclude regions from the git plugin.
Post by Manny DaSilva
Jenkins ver. 2.61
Pipeline checkout GitSCM.
I'm new to Jenkins Pipeline. Regarding code as follows. I would like to
have multiple include regions for Git SCM polling.
I'm unable to determine the right syntax. How would I add an additional
included region?
checkout (scm: [$class: 'GitSCM',
branches: [[name: 'mybranch']],
browser: [$class: 'FisheyeGitRepositoryBrowser',
repoUrl: 'https://crucible.mycompany.com:8445/browse/myrepo/'
],
doGenerateSubmoduleConfigurations: false,
extensions: [
true, reference: '', shallow: false],
'mytarget'],
[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' ]
],
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHMBODGSeyx4GaGOt%2BTy61X5y8b6RePzSoJ8rjnL7yN6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Manny DaSilva
2017-05-22 21:23:14 UTC
Permalink
Thanks for the reply. Just to be clear, the code I posted was generated by
the pipeline syntax snippet generator when additional behaviors is
selected. Are you saying that the code produced by that tool is not
supported or that the "extensions" 'PathRestriction' option is not
supported?
Before I made this post, I did extensive searches and found examples of one
included and/or excluded region but not for multiple regions. Am I to
understand that one region works but not multiple? Thanks in advance.
Post by Mark Waite
Pipeline does not support include or exclude regions from the git plugin.
Post by Manny DaSilva
Jenkins ver. 2.61
Pipeline checkout GitSCM.
I'm new to Jenkins Pipeline. Regarding code as follows. I would like to
have multiple include regions for Git SCM polling.
I'm unable to determine the right syntax. How would I add an additional
included region?
checkout (scm: [$class: 'GitSCM',
branches: [[name: 'mybranch']],
browser: [$class: 'FisheyeGitRepositoryBrowser',
repoUrl: 'https://crucible.mycompany.com:8445/browse/myrepo/'
],
doGenerateSubmoduleConfigurations: false,
extensions: [
true, reference: '', shallow: false],
'mytarget'],
[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' ]
],
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bb803f68-c0fa-4ca9-9320-f3ce511577a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Waite
2017-05-22 21:29:20 UTC
Permalink
Refer to https://issues.jenkins-ci.org/browse/JENKINS-36836 for a long
discussion of cases which work and cases which don't work and some of the
reasons for "works" and "don't work".

Mark Waite
Post by Manny DaSilva
Thanks for the reply. Just to be clear, the code I posted was generated by
the pipeline syntax snippet generator when additional behaviors is
selected. Are you saying that the code produced by that tool is not
supported or that the "extensions" 'PathRestriction' option is not
supported?
Before I made this post, I did extensive searches and found examples of
one included and/or excluded region but not for multiple regions. Am I to
understand that one region works but not multiple? Thanks in advance.
Post by Mark Waite
Pipeline does not support include or exclude regions from the git plugin.
Jenkins ver. 2.61
Post by Mark Waite
Post by Manny DaSilva
Pipeline checkout GitSCM.
I'm new to Jenkins Pipeline. Regarding code as follows. I would like to
have multiple include regions for Git SCM polling.
I'm unable to determine the right syntax. How would I add an additional
included region?
checkout (scm: [$class: 'GitSCM',
branches: [[name: 'mybranch']],
browser: [$class: 'FisheyeGitRepositoryBrowser',
repoUrl: '
https://crucible.mycompany.com:8445/browse/myrepo/'],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', depth: 0, honorRefspec: true,
noTags: true, reference: '', shallow: false],
'mytarget'],
[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' ]
],
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
Post by Manny DaSilva
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/bb803f68-c0fa-4ca9-9320-f3ce511577a8%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/bb803f68-c0fa-4ca9-9320-f3ce511577a8%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFP%3DgzOzi%3De%2BpMXzh2wFBXJbPQxom%3DGdR_VdzLXjxKFrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Manny DaSilva
2017-05-22 22:28:26 UTC
Permalink
I'm migrating build jobs from CCNet to Jenkins. And coming from CCNet (with
Git), I know that polling with inclusions and exclusions can be made to
work.
Assuming the feature was working properly, what would be the syntax for
multiple included regions? For example, I can't get the following syntax to
work.
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' 'another/path/.*' ]
Post by Mark Waite
Refer to https://issues.jenkins-ci.org/browse/JENKINS-36836 for a long
discussion of cases which work and cases which don't work and some of the
reasons for "works" and "don't work".
Mark Waite
Post by Manny DaSilva
Thanks for the reply. Just to be clear, the code I posted was generated
by the pipeline syntax snippet generator when additional behaviors is
selected. Are you saying that the code produced by that tool is not
supported or that the "extensions" 'PathRestriction' option is not
supported?
Before I made this post, I did extensive searches and found examples of
one included and/or excluded region but not for multiple regions. Am I to
understand that one region works but not multiple? Thanks in advance.
Post by Mark Waite
Pipeline does not support include or exclude regions from the git plugin.
Jenkins ver. 2.61
Post by Mark Waite
Post by Manny DaSilva
Pipeline checkout GitSCM.
I'm new to Jenkins Pipeline. Regarding code as follows. I would like to
have multiple include regions for Git SCM polling.
I'm unable to determine the right syntax. How would I add an additional
included region?
checkout (scm: [$class: 'GitSCM',
branches: [[name: 'mybranch']],
browser: [$class: 'FisheyeGitRepositoryBrowser',
repoUrl: '
https://crucible.mycompany.com:8445/browse/myrepo/'],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', depth: 0, honorRefspec: true,
noTags: true, reference: '', shallow: false],
'mytarget'],
[$class: 'DisableRemotePoll'],
[$class: 'PathRestriction', excludedRegions: '',
includedRegions: 'ManageApi/.*' ]
],
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
Post by Manny DaSilva
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/ac9dfe52-1d93-4f88-9eb1-91b9629a2650%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/bb803f68-c0fa-4ca9-9320-f3ce511577a8%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/bb803f68-c0fa-4ca9-9320-f3ce511577a8%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/4f36bcb5-c4c5-48fa-b5f5-d37b759b5b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...