Gitlab for the Jenkins website with options

I am trying to create work on my jenkins using the Gitlab website when you enter a particular branch. The only problem I have is that the jenkins job is parameterized. The parameter is the name of the branch. Is it possible to add the name of the branch (its different branch each time) to the webhook so that it is automatically inserted into the parameter in the jenkins job parameter?

thanks

+5
source share
1 answer

You can do this with the Generic Webhook Trigger plugin . There is also an example of using this plugin with GitLab in Breaking Comments on a GitLab page .

The source branch is resolved using the following JSONPath:

$.object_attributes.source_branch 
0
source

All Articles