Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58112

Triggering multibranch pipeline from jira-trigger-plugin

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • jira-trigger-plugin
    • Jenkins ver. 2.138.2

       
      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 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 get this work when using mutibranch pipeline in Jenkins?

      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?

          [JENKINS-58112] Triggering multibranch pipeline from jira-trigger-plugin

          hhkkss created issue -
          hhkkss made changes -
          Issue Type Original: Story [ 10002 ] New: Bug [ 1 ]
          hhkkss made changes -
          Description Original:  
          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?
           # 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?
          New:  
           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 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 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?
          hhkkss made changes -
          Labels New: jekins jira jira-t
          hhkkss made changes -
          Labels Original: jekins jira jira-t New: jekins jira

          Wisen Tanasa added a comment -

          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.

          Wisen Tanasa added a comment - 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 .

          hhkkss added a comment - - edited

          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. 

           

          hhkkss added a comment - - edited 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.   

          Wisen Tanasa added a comment -

          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 Tanasa added a comment - 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 Tanasa made changes -
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Wisen Tanasa made changes -
          Summary Original: Triggering mulibranch pipeline from jira-trigger-plugin New: Triggering multibranch pipeline from jira-trigger-plugin

            hhkkss hhkkss
            hhkkss hhkkss
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: