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

Problem with build in jenkins when issue is updated in Jira

    Details

    • Similar Issues:

      Description

      Hi support,

      • We want to make automatic build in Jenkins when issue status is updated in JIRA. Firstly we made Integration between Jira and Jenkins, and we installed the plugin for Jenkins in Jira.
        Then we made a configuration for Build trigger in Jenkins - Build when an issue is updated in Jira. We filled this part as it is shown on the first picture.
        We set JQL filter and Jira Field Matcher. But we didn't succeed to make an automatic build in Jenkins when an issue changed a status in Jira.
        Could you help us or give an example how to configure the part Parameter mapping (Custom Field and Issue Attribute Path). I send you a screen shots.
        Any information would be useful for us,
        Thank you for your support,
        Best Regards,
        Maja

        Attachments

        1. 941.PNG
          941.PNG
          66 kB
        2. CLI1.PNG
          CLI1.PNG
          6 kB
        3. conf.PNG
          conf.PNG
          25 kB
        4. console output.PNG
          console output.PNG
          96 kB
        5. jenkins log.PNG
          jenkins log.PNG
          20 kB
        6. jira webhook.PNG
          jira webhook.PNG
          22 kB
        7. newlogger1.PNG
          newlogger1.PNG
          50 kB
        8. no valid crumb.PNG
          no valid crumb.PNG
          23 kB
        9. Screenshot_19.jpg
          Screenshot_19.jpg
          26 kB
        10. Screenshot_20.jpg
          Screenshot_20.jpg
          11 kB
        11. Screenshot_21.jpg
          Screenshot_21.jpg
          10 kB
        12. status1.PNG
          status1.PNG
          28 kB
        13. webhook.PNG
          webhook.PNG
          73 kB
        14. webhook.PNG
          webhook.PNG
          73 kB

          Activity

          Hide
          iskratel Maja Janeva added a comment -

          Show
          iskratel Maja Janeva added a comment -
          Hide
          ceilfors Wisen Tanasa added a comment -

          Hi Maja Janeva. Unfortunately I can't see anything in your log that comes from JIRA. I would conclude that you have a connectivity issue from your JIRA instance to your Jenkins environment problem. You might want to check if there's any firewall that's blocking your network connectivity.

          Show
          ceilfors Wisen Tanasa added a comment - Hi Maja Janeva . Unfortunately I can't see anything in your log that comes from JIRA. I would conclude that you have a connectivity issue from your JIRA instance to your Jenkins environment problem. You might want to check if there's any firewall that's blocking your network connectivity.
          Hide
          iskratel Maja Janeva added a comment -

          The firewall was disabled. Also I disabled iptables and selinux but this not helped. After every Jira issue transition there was a log like on the picture bellow. Also I disabled the option Prevent Cross Site Request Forgery exploits (It was checked as default). But the only change then before is that the error No valid crumb was included in request for /job/Test%20Maja/build. Returning 403 is not shown in the log. There is not automatic build again :/

          Have you ever had some similar error? Or maybe you could redirect me to some other person that could help me.
          Thank you very much Wisen.

          Show
          iskratel Maja Janeva added a comment - The firewall was disabled. Also I disabled iptables and selinux but this not helped. After every Jira issue transition there was a log like on the picture bellow. Also I disabled the option Prevent Cross Site Request Forgery exploits (It was checked as default). But the only change then before is that the error No valid crumb was included in request for /job/Test%20Maja/build. Returning 403 is not shown in the log. There is not automatic build again :/ Have you ever had some similar error? Or maybe you could redirect me to some other person that could help me. Thank you very much Wisen.
          Hide
          ceilfors Wisen Tanasa added a comment -

          I'm the only maintainer unfortunately. Couple of final suggestions:

          • Are you using JIRA Cloud? If so, 8080 port might not be supported, I also haven't tested JIRA cloud too.
          • If you own the JIRA box, SSH to JIRA machine. Try to cURL Jenkins URL and make sure that you can get a response back. It shouldn't time out etc. This will rule out network problems.
          • Make JIRA and Jenkins configuration to be less restrictive, a build should be able to be triggered every time there's any little change with these configuration:
            • In JIRA Webhook: Remove the JQL
            • In Jenkins Job's JIRA Trigger Plugin Config: Remove the JQL filter, and remove the Changelog Matcher.

           

          Show
          ceilfors Wisen Tanasa added a comment - I'm the only maintainer unfortunately. Couple of final suggestions: Are you using JIRA Cloud? If so, 8080 port might not be supported, I also haven't tested JIRA cloud too. If you own the JIRA box, SSH to JIRA machine. Try to cURL Jenkins URL and make sure that you can get a response back. It shouldn't time out etc. This will rule out network problems. Make JIRA and Jenkins configuration to be less restrictive, a build should be able to be triggered every time there's any little change with these configuration: In JIRA Webhook: Remove the JQL In Jenkins Job's JIRA Trigger Plugin Config: Remove the JQL filter, and remove the Changelog Matcher.  
          Hide
          ceilfors Wisen Tanasa added a comment -

          Closed due to inactivity.

          Show
          ceilfors Wisen Tanasa added a comment - Closed due to inactivity.

            People

            • Assignee:
              ceilfors Wisen Tanasa
              Reporter:
              iskratel Maja Janeva
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: