Closed dsakilesh closed 3 years ago
This plugin triggers builds. The scan-feature of multibranch is not a build. This plugin has, and will not have, any dependency on the multibranch pipeline. I think that way of working is wrong: https://www.jenkins.io/blog/2019/12/14/generic-webhook-trigger-plugin/
Your job is not triggering because of $repository
. It does not resolve to anything and the text only has $ref
:
regexpFilterText: '$ref',
regexpFilterExpression: '$repository refs/heads/' + BRANCH_NAME
If you want to use this plugin together with multibranch you will need the multibranch webhook trigger to trigger the scanning. And this plugin can trigger the builds.
Hi Tomas Bjerre,
We currently have multibranch pipeline jobs and we want a functionality where in only the branch that triggered jenkins should be scanned. We do not want to unnecessarily scan all the branches as it consumes system resources.
So is there a way that we can achieve this with multibranch pipeline?
Thanks in advance!
Regards, Akilesh D S
I dont think so. You should open an issue on that plugin.
Bitbucket version = v5.8.2
Plugin version used = 1.67
Jenkins version used = Jenkins 2.235.3
I am trying to trigger a specific jenkins job from generic webhook trigger plugin but the job is not triggering though i get a successful connection from bitbucket to Jenkins.
Response from bitbucket webhook url :
Response from the curl command:
I get the same response with triggered:false , but I want the jobs to be triggered as part of the commit to a branch.
I have the below generic trigger configuration as part of my Jenkinsfile:
Our intention is to scan and trigger only a specific branch where a commit/push has happened and to avoid unecessary scan of all the existing branches. (which will consume lot of system resources)
Note : I have also tried multibranch webhook trigger which will trigger the job , where as generic webhook is not triggering.
multibranch webhook url:
https://jenkins.com/multibranch-webhook-trigger/invoke?&token=TEST_HOOK
But the disadvantage of mutibranch is it will scan all the branches which we do not want it to happen.
Let me know if you need more details.
Thanks in advance!
Regards, Akilesh D S