-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Hello,
I'm having a problem that seems pretty much identical to this one for the Gitlab Branch Source Plugin: https://github.com/Argelbargel/gitlab-branch-source-plugin/issues/45
I'm assuming the root issue is very similar, if not identical. On Github webhook triggers a number of branch indexing jobs are kicked off for builds in the current repo, as well as for other repos. I'm using BlueOcean.
Questions:
1) Is this a known issue?
2) Is there a workaround?
3) As a possible means to come up with a workaround, are there any variables I can latch onto that would give me visibility into the context so in my Jenkinsfile pipeline I can do the following on branch indexing:
currentBuild.result = 'NOT_BUILT' error('Aborting build triggered by scan process')
This was a suggestion in the above Gitlab thread, only I'm not seeing an equivalent to `gitlabActionType` in the list of environment variables (output with "env"). It would be great if I could ignore builds from branch indexing as a short term workaround without disabling the webhooks entirely.
In addition, this might be a totally separate issue, but in BlueOcean's "Changes" tab I'm seeing commits from other repos. If this is worth filing as a separate ticket please let me know and I'll do so. Happy to provide as much detail as is useful with these issues.