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

No issue update if at least one issue does not exists

    XMLWordPrintable

Details

    Description

      If an issue does not exist in JIRA, all other issues in build will not get an update.
      JIRA issues won't be saved either!

      I am using Plugin-Version 2.2.1

      Build Log:

      Checking out Revision 7a9b0232458eea8717a61bbb90bf93d7d0d8f815 (refs/remotes/origin/v18.00/feature/IssueUpdate)
      Error updating JIRA issues. Saving issues for next build.
      java.lang.NullPointerException
      

      Jenkins-Log:

      Jun 16, 2016 9:00:39 AM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate
      Annotating JIRA id: 'PD-882099'
      Jun 16, 2016 9:00:39 AM WARNING hudson.plugins.jira.JiraRestService getIssue
      jira rest client get issue error. cause: RestClientException{statusCode=Optional.of(404), errorCollections=[ErrorCollection{status=404, errors={}, errorMessages=[DER VORGANG EXISTIERT NICHT.]}]}
      Jun 16, 2016 9:00:39 AM WARNING hudson.plugins.jira.JiraChangeLogAnnotator annotate
      Error getting remote issue PD-882099
      com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key PD-882099.
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2383)
      	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2351)
      	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
      	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
      	at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
      	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
      	at hudson.plugins.jira.JiraSite.getIssue(JiraSite.java:424)
      	at hudson.plugins.jira.JiraChangeLogAnnotator.annotate(JiraChangeLogAnnotator.java:101)
      	at hudson.scm.ChangeLogSet$Entry.getMsgAnnotated(ChangeLogSet.java:252)
      	at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
      

      Attachments

        Issue Links

          Activity

            sumeshkanayi Sumesh kk added a comment - - edited

            I am also stuck with this
            JIRA extension plugin updates the issues even if a bad issue is present in the commit message ,but it needs to have the JIRA Project keys hard coded to the tool configuration
            Should be a REST behaviour

            sumeshkanayi Sumesh kk added a comment - - edited I am also stuck with this JIRA extension plugin updates the issues even if a bad issue is present in the commit message ,but it needs to have the JIRA Project keys hard coded to the tool configuration Should be a REST behaviour

            Still exist in 2.4.2

            Aug 16, 2017 1:08:52 PM hudson.model.listeners.RunListener report
            WARNING: RunListener failed
            com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key PR-12633.
                    at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2383)
                    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2351)
                    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313)
                    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228)
                    at com.google.common.cache.LocalCache.get(LocalCache.java:3965)
                    at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764)
                    at hudson.plugins.jira.JiraSite.getIssue(JiraSite.java:450)
                    at hudson.plugins.jira.JiraJobAction.setAction(JiraJobAction.java:99)
                    at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:130)
                    at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:122)
                    at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240)
                    at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:255)
                    at hudson.model.ResourceController.execute(ResourceController.java:97)
                    at hudson.model.Executor.run(Executor.java:405)
            
            dubrsl Viacheslav Dubrovskyi added a comment - Still exist in 2.4.2 Aug 16, 2017 1:08:52 PM hudson.model.listeners.RunListener report WARNING: RunListener failed com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key PR-12633. at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2383) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2351) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764) at hudson.plugins.jira.JiraSite.getIssue(JiraSite.java:450) at hudson.plugins.jira.JiraJobAction.setAction(JiraJobAction.java:99) at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:130) at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:122) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:255) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405)

            Code changed in jenkins
            User: zlei
            Path:
            src/main/java/hudson/plugins/jira/JiraSite.java
            src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy
            http://jenkins-ci.org/commit/jira-plugin/a1909b0f401e12677950c57f605f7b417c75f50f
            Log:
            JENKINS-48716 Prevent Guava InvalidCacheLoadException (#136)

            JENKINS-48716 JENKINS-35998 Prevent Guava InvalidCacheLoadException

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: zlei Path: src/main/java/hudson/plugins/jira/JiraSite.java src/test/groovy/hudson/plugins/jira/JiraSiteTest.groovy http://jenkins-ci.org/commit/jira-plugin/a1909b0f401e12677950c57f605f7b417c75f50f Log: JENKINS-48716 Prevent Guava InvalidCacheLoadException (#136) JENKINS-48716 JENKINS-35998 Prevent Guava InvalidCacheLoadException

            People

              warden Radek Antoniuk
              hoppej Jan Hoppe
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: