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'
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