Hi Neil;
I'm trying to use below block in my multibranchpipeline generator under
branchsources using job-dsl
After building generator job upon checking on project config could see
Build Strategy nothing but just an ADD button
Even I tried with ignoredAuthors.add and ignoreCommitterStrategy.add but
didnt work out.
Interested to know how to resolve this issue
buildStrategies {
ignoreCommitterStrategy {
ignoredAuthors("sathya")
allowBuildIfNotExcludedAuthor(true)
}
}
Thanks,
SathyaNarayanan.K
On Thursday, November 22, 2018 at 5:54:57 PM UTC+8, Neil T wrote:
>
> Thanks Victor! I will try this out.
> Cheers,
>
> Neil
>
>
> On Wed, 21 Nov 2018 at 19:23, Victor Martinez <[email protected]
> <javascript:>> wrote:
>
>> You might need to refer to the trais sections in the branchSource
>>
>> -
>> <YOUR_JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#path/multibranchPipelineJob-branchSources-branchSource-source-git-traits-headWildcardFilter
>>
>> multibranchPipelineJob(buildName) {
>> ...
>>
>> branchSources {
>> branchSource {
>> source {
>> git {
>> remote(<url>)
>> traits {
>> headWildcardFilter {
>> includes('master* branch1')
>> excludes('')
>> }
>> }
>> }
>> }
>> buildStrategies {
>> ignoreCommitterStrategy {
>> ignoredAuthors("[email protected] <javascript:>")
>> allowBuildIfNotExcludedAuthor(true)
>> }
>> }
>> }
>> }
>> }
>>
>>
>> Cheers
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Jenkins Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/jenkinsci-users/ZjBFRPAbilE/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/b17f6482-6a7e-4d16-b697-9f0f7cd085cb%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/jenkinsci-users/b17f6482-6a7e-4d16-b697-9f0f7cd085cb%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/c740153e-80f0-46a2-8d5e-4e2efd319071%40googlegroups.com.