Re: Best approach for trigger build only new added branches when scan multi-branch pipeline

2020-09-16 Thread Gianluca
I can see some ways to achieve that. You can look at the "triggeredBy" option to use in the "when" block to avoid build the pipeline is not triggered but what you want. For example, we do this: when { anyOf { triggeredBy 'UpstreamCause' triggeredBy 'UserIdCause' } } Because we don'

Best approach for trigger build only new added branches when scan multi-branch pipeline

2020-09-16 Thread BTH
Dear folks, I have a limited resources Jenkins server and a bunch of multi-branch pipelines which are poll from GitLab repositories (scripted jenkins pipeline ). Then I've noticed that my Jenkins usually crash by run out of memory when someone click on scan multi-branch and its triggers build