There is a Java maven project with its source code managed by Gitbucket. Having configured a maven item in jenkins for the project.
And, now want to trigger auto build in jenkins when gitbucket receive a new commit, according to: https://plugins.jenkins.io/gitbucket
Here is what I have done:
- Install jenkins & gitbucket.
- Install plugins for jenkins, include git plugin &
Gitbucketplugin. - In githucket, add a webhook of jenkins.
- In jenkins, create a
mavenproject, and checked the optionBuild when a change is pushed to GitBucketwithinBuild Triggerssection.
Current status:
Could build the project in jenkins by hand successfully.
But, when push a new commit to gitbucket, jenkins can't trigger a new build.
- In gitbucket's webhook config page, when click
test hook, would get a403response.
Questions:
- When push from gitbucket to jenkins on commit, what is the mechanism to do authentication? How to config it in details. (I have googled a while, didn't get a clear working solution)
- In gitbucket, when create webhook, there is a
security tokenfield, where should the value from, is that relevant to this task?
Thanks.