my jira issue is connected to Git pull requests, and i would like to trigger a jenkins job when a jira status changes. but one of the parameters the jenkins job requires is the branch, how can i pass the branch parameter from my jira issue to jenkins?
more info:
my jenkins build is expecting to get a Git branch name. This the information i need to parse from the JIRA issue
so my question is, how do i inject the branch name via the parameter mapping provided by the Jira-trigger-plugin
You can make this project as Parameterised and pass parameters as
String Parameters. Just Browse toJenkin's Job -> General -> This project is parameterisedand now choose which type of parameter you want. In your case, its aString Parameter. Please refer this image.You can access your parameter by
$parameter_name_goes_here. From above pic parameters are$JIRA_TICKET_IDand$USER_EMAIL. Hope this helps.