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

Jenkins Jira Plugin - Unable to add version

    Details

    • Similar Issues:

      Description

      After upgrading from Jira Plugin 3.0.2 to 3.0.3, the following error is presented when trying to increment versions through Jenkins.

      FATAL: Unable to add version 1.6 (170) to JIRA project XXX
      java.lang.IllegalArgumentException
      at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1307)
      at java.util.concurrent.ThreadPoolExecutor.<init>(ThreadPoolExecutor.java:1230)
      at java.util.concurrent.Executors.newFixedThreadPool(Executors.java:151)
      at hudson.plugins.jira.JiraSite.createSession(JiraSite.java:457)
      at hudson.plugins.jira.JiraSite.getSession(JiraSite.java:426)
      at hudson.plugins.jira.JiraSite.getVersions(JiraSite.java:815)
      at hudson.plugins.jira.VersionCreator.perform(VersionCreator.java:39)
      at hudson.plugins.jira.JiraVersionCreator.perform(JiraVersionCreator.java:58)
      at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
      at hudson.model.Build$BuildExecution.post2(Build.java:186)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      at hudson.model.Run.execute(Run.java:1835)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)

       

      Rolling back to to 3.0.2 rectifies the issue.

        Attachments

          Activity

          Hide
          ddaehler Daniel Daehler added a comment -

          We had the same issue. The comment on pull request #166 provides a fix for the problem.

          After setting the settings 'Read Timeout' to 30 and 'Thread Executor Size' to 10 the problem was gone.

           

          Show
          ddaehler Daniel Daehler added a comment - We had the same issue. The comment on pull request #166 provides a fix for the problem. After setting the settings 'Read Timeout' to 30 and 'Thread Executor Size' to 10 the problem was gone.  
          Hide
          andyh200 Andy H added a comment -

          Thanks for the suggestion Daniel Daehler 

          I'll look to give it a go in the morning, when no jobs are running.

           

          Show
          andyh200 Andy H added a comment - Thanks for the suggestion Daniel Daehler   I'll look to give it a go in the morning, when no jobs are running.  
          Hide
          tsniatowski Tomasz Śniatowski added a comment -

          I started getting the same error on all builds on the changelog annotation step after upgrading to 3.0.3, I also found Read timeout and Thread Executor Size both set to zero in the config. It seems the defaults and/or migration is not done properly.

          Show
          tsniatowski Tomasz Śniatowski added a comment - I started getting the same error on all builds on the changelog annotation step after upgrading to 3.0.3, I also found Read timeout and Thread Executor Size both set to zero in the config. It seems the defaults and/or migration is not done properly.
          Hide
          tsniatowski Tomasz Śniatowski added a comment -

          Setting these to non-zero values seems to have helped in my case, but such manual action shouldn't be necessary.

          Show
          tsniatowski Tomasz Śniatowski added a comment - Setting these to non-zero values seems to have helped in my case, but such manual action shouldn't be necessary.
          Hide
          andyh200 Andy H added a comment -

          I can confirm setting the Read Timeout and Thread Executor Size to non-zero values has remedied the issue.

          Show
          andyh200 Andy H added a comment - I can confirm setting the Read Timeout and Thread Executor Size to non-zero values has remedied the issue.
          Hide
          warden Radek Antoniuk added a comment -

          Fixed in 3.0.5

          Show
          warden Radek Antoniuk added a comment - Fixed in 3.0.5

            People

            • Assignee:
              Unassigned
              Reporter:
              andyh200 Andy H
            • Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: