Hi everyone. I have a bug in the github plugin which is already referenced by a ticket and a PR:
However, the PR is nearly 1 year old and I am trying to figure out how to fix it to make it mergeable and propagate it to my jenkins installation.
From my understanding, the whole problem comes from the assumption that we want only WorkflowJob which have the "BranchJobProperty" set.
However, I grepped the whole workflow-job-plugin code without finding any trace of that property. The workflow-multibranch-plugin however does set this property.
So basically, this
code is false. We need to use a way to fetch the branch name which is compatible for both workflow job and multibranch workflow jobs.
In the PR, I think the reviewer didn't understood what was the problem so it went nowhere. can someone review it again? I think the changes proposed by masterzen are valid but if they aren't I am willing to help fixing it.
Thanks.