[JIRA] (JENKINS-58112) Triggering mulibranch pipeline from jira-trigger-plugin

20 views
Skip to first unread message

kshettihewa@gmail.com (JIRA)

unread,
Jun 20, 2019, 2:58:03 AM6/20/19
to jenkinsc...@googlegroups.com
Krishan Hettihewa created an issue
 
Jenkins / Story JENKINS-58112
Triggering mulibranch pipeline from jira-trigger-plugin
Issue Type: Story Story
Assignee: Wisen Tanasa
Components: jira-trigger-plugin
Created: 2019-06-20 06:57
Environment: Jenkins ver. 2.138.2
Priority: Major Major
Reporter: Krishan Hettihewa

 
I have Jenkins Mutibranch pipeline. I want to integrate my Jira with one of multibranch project. I have installed the JIRA Trigger Plugin and configured Webhook in Jira. however, when I checked in my Jenkins job it does not show me the Build when an issue is updated in JIRA but it shows when I go to View Configuration in the particular branch. it allows me to select the Build when an issue is updated in JIRA but there is no option to save the changes. I know this might be a reason the option is view only. but how can I configure this?

  1. Is anyone configured JIRA Trigger Plugin with Jenkins mutibranch project where using Jenkinsfile? and what is the correct way of integrating this?
  1. Should I do some coding in the Jenkins file to get this done?
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kshettihewa@gmail.com (JIRA)

unread,
Jun 20, 2019, 2:58:04 AM6/20/19
to jenkinsc...@googlegroups.com

kshettihewa@gmail.com (JIRA)

unread,
Jun 20, 2019, 3:00:03 AM6/20/19
to jenkinsc...@googlegroups.com
Krishan Hettihewa updated an issue
 
I have Jenkins Mutibranch pipeline. I want to integrate my Jira with one of multibranch project. I have installed the *JIRA Trigger Plugin* and configured Webhook in Jira. however, when I checked in my Jenkins job
it configuration,  its does not show me the *_Build when an issue is updated in JIRA_* but it shows when I go to *View Configuration* in the particular branch. it allows me to select the *_Build when an issue is updated in JIRA_* but there is no option to save the changes. I know this might be a reason the option is view only and the parameters getting from jenkinsfile . but how can I configure get this work when using mutibranch pipeline in Jenkins ?
# Is anyone configured *JIRA Trigger Plugin* with Jenkins mutibranch project where using Jenkinsfile? and what is the correct way of integrating this?

# Should I do some coding in the Jenkins file to get this done?

kshettihewa@gmail.com (JIRA)

unread,
Jun 20, 2019, 3:03:02 AM6/20/19
to jenkinsc...@googlegroups.com
hhkkss updated an issue
Change By: hhkkss
Labels: jekins jira jira-t

kshettihewa@gmail.com (JIRA)

unread,
Jun 20, 2019, 3:03:02 AM6/20/19
to jenkinsc...@googlegroups.com

wisen@ceilfors.com (JIRA)

unread,
Jun 22, 2019, 3:11:02 AM6/22/19
to jenkinsc...@googlegroups.com
Wisen Tanasa commented on Bug JENKINS-58112
 
Re: Triggering mulibranch pipeline from jira-trigger-plugin

Thanks for filing this issue. This is not a tested feature. Can you help me understand what are you trying to achieve:

  • When a there is change in JIRA, which branch are you expecting to build?
  • What are you expecting to be there but not there to make this functionality to work?

When I read the documentation for multi branch pipeline, it seems like the only trigger that makes sense is a source control system like Git, that has branches.

kshettihewa@gmail.com (JIRA)

unread,
Jun 22, 2019, 9:38:02 AM6/22/19
to jenkinsc...@googlegroups.com
hhkkss commented on Bug JENKINS-58112

**Thanks for the response. please see below comments. 

  • When there is change in JIRA, which branch are you expecting to build?

In our Multibranch pipeline, most probably have two branches named, development and release. we handle CD only for release branch. but this is not the case, my problem is whether the Jira-trigger-plugin supports for Multibranch pipeline jobs.

 

  • What are you expecting to be there but not there to make this functionality to work?

As I understood from [this|https://github.com/jenkinsci/jira-trigger-plugin], Jira-trigger-plugin allows when the issues comment added/updated or stage changed, which notify Jenkins through Webhook call, so Jenkins build can be configured to trigger builds by selecting the checkbox under Job configurations with below options. 

My question is, can we obtain the same feature for Jenkins Multibranch pipeline jobs as well? because when I go to job configuration in my Multibranch pipeline Job, I don't see below two options under build triggers while I already installed the plugin and restarted the Jenkins service. but these options is there for other common pipeline jobs. only Multibranch pipeline jobs does not contains these options. 

Build when a comment is added to Jira

Build when an issue updated in JIRA

 

 

I hope now days most of DevOps guys are using Jenkins Multibranch pipeline plugin for their CI/CD. hence, this is really nice if the Jira-trigger-plugin support for Multibranch pipeline as well. 

 

kshettihewa@gmail.com (JIRA)

unread,
Jun 22, 2019, 9:39:02 AM6/22/19
to jenkinsc...@googlegroups.com
hhkkss edited a comment on Bug JENKINS-58112
** Thanks for the response. please see below comments. 
* *When there is change in JIRA, which branch are you expecting to build?*

In our Multibranch pipeline, most probably have two branches named, +development+ and +release.+ we handle CD only for +release+ branch. but this is not the case, my problem is whether the *Jira-trigger-plugin* supports for Multibranch pipeline jobs.

 
* *What are you expecting to be there but not there to make this functionality to work?*

As I understood from [this|[https://github.com/jenkinsci/jira-trigger-plugin]], *Jira-trigger-plugin* allows when the issues comment added/updated or stage changed, which notify Jenkins through Webhook call, so Jenkins build can be configured to trigger builds by selecting the checkbox under Job configurations with {color:#de350b}below{color} options. 

My question is, can we obtain the same feature for Jenkins Multibranch pipeline jobs as well? because when I go to job configuration in my Multibranch pipeline Job, I don't see {color:#de350b}below{color} two options under build triggers while I already installed the plugin and restarted the Jenkins service. but these options is there for other common pipeline jobs. only Multibranch pipeline jobs does not contains these options. 

{color:#de350b}_Build when a comment is added to Jira_{color}

{color:#de350b}_Build when an issue updated in JIRA_{color}

 

 

I hope now days most of DevOps guys are using Jenkins Multibranch pipeline plugin for their CI/CD. hence, this is really nice if the *Jira-trigger-plugin* support for Multibranch pipeline as well. 

 

kshettihewa@gmail.com (JIRA)

unread,
Jun 22, 2019, 10:26:02 AM6/22/19
to jenkinsc...@googlegroups.com

wisen@ceilfors.com (JIRA)

unread,
Jun 22, 2019, 3:06:03 PM6/22/19
to jenkinsc...@googlegroups.com

Thanks. I understand your problem that this is not supported at the moment.

What I'm trying to understand better is the behaviour of jira-trigger-plugin that you're expecting if this plugin is supporting multibranch pipeline. So if you have development and release branch in your multibranch pipeline job, which branch would the plugin trigger? For example in git trigger, if there is a change in development branch, only development job is triggered. I'm not sure what are you expecting when multibranch pipeline job is configured with jira-trigger-plugin, trigger all branches build?

Probably you can try given when then format.

wisen@ceilfors.com (JIRA)

unread,
Jun 22, 2019, 3:06:03 PM6/22/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages