Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2862

Jenkins must be able to comment JIRA tickets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      A Jenkins job must be able to parse a ticket reference from a commit and comment the corresponding ticket with Git and build data.

      According to https://jira.nuxeo.com/browse/ELEMENTS-934?jql=Participants%20in%20(hudson)%20ORDER%20BY%20updated%20DESC, the Jira tickets are not updated by Jenkins as expected. It seems broken as of April, 30th.
       

      step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'], scm: scm])
      
      > [Pipeline] step NXBT-2851 issue doesn't exist in JIRA
      

       
      Manually browsing with the Jenkins user, the tickets are visible and editable.

      Logs extract:

      INFO [Executor #0 for slave-00lljjhghch0t : executing master/nuxeo-master-buildonly-daily #1127] hudson.plugins.jira.JiraChangeLogAnnotator.annotate No known JIRA project corresponding to id: 'NXP-27259'
      
      WARNING [Executor #0 for itslave03 : executing Deploy/IT-nuxeo-master-build #1367] hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch jira rest client timeout from jql search error. cause: Timeout waiting for task.
       java.util.concurrent.TimeoutException: Timeout waiting for task.
              at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:259)
              at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91)
              at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69)
              at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113)
              at hudson.plugins.jira.JiraRestService.getIssuesFromJqlSearch(JiraRestService.java:197)
              at hudson.plugins.jira.JiraSession.getIssuesFromJqlSearch(JiraSession.java:136)
              at io.jenkins.blueocean.service.embedded.jira.JiraSCMListener.onChangeLogParsed(JiraSCMListener.java:52)
              at hudson.model.listeners.SCMListener.onChangeLogParsed(SCMListener.java:120)
              at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:590)
              at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
              at hudson.model.Run.execute(Run.java:1816)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
              at hudson.model.ResourceController.execute(ResourceController.java:97)
              at hudson.model.Executor.run(Executor.java:429)
      

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: