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

NullPointerException pipeline failure around checkout

    XMLWordPrintable

    Details

    • Sprint:
      Pipeline - July/August
    • Similar Issues:

      Description

      A pipeline build failed randomly (once, a rebuild was fine). At the point of failure, it does a steps.checkout(changelog: true, scm: [$class: 'GitSCM' ...

      [Pipeline] {
      [Pipeline] checkout
       > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > git config remote.origin.url bot@git:/var/git/work.git # timeout=10
      Fetching upstream changes from bot@git:/var/git/work.git
       > git --version # timeout=10
      using GIT_SSH to set credentials 
       > git fetch --tags --progress bot@git:/var/git/work.git +refs/heads/*:refs/remotes/origin/*
       > git rev-parse refs/remotes/origin/1^{commit} # timeout=10
       > git rev-parse refs/remotes/origin/1^{commit} # timeout=10
      Checking out Revision 7765.. (refs/remotes/origin/1)
      Commit message: "..."
       > git config core.sparsecheckout # timeout=10
       > git checkout -f 7765..
       > git rev-list 78911.. # timeout=10
      [Pipeline] }
      [Pipeline] // dir
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] }
      [Pipeline] // ws
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      java.lang.NullPointerException
      	at io.jenkins.blueocean.service.embedded.jira.JiraSCMListener.onChangeLogParsed(JiraSCMListener.java:40)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:817)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1500(WorkflowRun.java:135)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1002)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:85)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:75)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
      	at hudson.security.ACL.impersonate(ACL.java:260)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

            Hide
            markewaite Mark Waite added a comment -

            Thanks for the clarification on the version which contains the fix. It is definitely not fixed in Blue Ocean 1.2.1.

            Show
            markewaite Mark Waite added a comment - Thanks for the clarification on the version which contains the fix. It is definitely not fixed in Blue Ocean 1.2.1.
            Hide
            markewaite Mark Waite added a comment - - edited

            Michael Neale, just to confirm, this is not fixed in Blue Ocean 1.2.3 either, right? I tested interactively with blue ocean 1.2.3 and can still see the failure in at least one of my jobs.

            I'm surprised it was not backported, since it causes build failures in jobs which have no interaction with Jira or Blue Ocean.

            Show
            markewaite Mark Waite added a comment - - edited Michael Neale , just to confirm, this is not fixed in Blue Ocean 1.2.3 either, right? I tested interactively with blue ocean 1.2.3 and can still see the failure in at least one of my jobs. I'm surprised it was not backported, since it causes build failures in jobs which have no interaction with Jira or Blue Ocean.
            Hide
            michaelneale Michael Neale added a comment -

            Mark Waite https://github.com/jenkinsci/blueocean-plugin/commits/release/1.2 has https://github.com/jenkinsci/blueocean-plugin/pull/1401 in it - which includes some defensive code - which is in latest. Is there more that should be backported? (sorry hard to tell from the lengthy discussion here). If there is more to backport, can be done pretty easily. 

            Show
            michaelneale Michael Neale added a comment - Mark Waite https://github.com/jenkinsci/blueocean-plugin/commits/release/1.2  has https://github.com/jenkinsci/blueocean-plugin/pull/1401  in it - which includes some defensive code - which is in latest. Is there more that should be backported? (sorry hard to tell from the lengthy discussion here). If there is more to backport, can be done pretty easily. 
            Hide
            markewaite Mark Waite added a comment -

            Michael Neale I think that it also needs the pull request mentioned in earlier comments.

            Show
            markewaite Mark Waite added a comment - Michael Neale I think that it also needs the pull request mentioned in earlier comments .
            Hide
            michaelneale Michael Neale added a comment -

            Mark Waite dang it! I knew there was another one but I just find JIRA really ahrd to read through the history of. 

             

            https://github.com/jenkinsci/blueocean-plugin/pull/1403 opened for this. If Vivek Pandey blesses it can get that in too. Good one. 

            Show
            michaelneale Michael Neale added a comment - Mark Waite dang it! I knew there was another one but I just find JIRA really ahrd to read through the history of.    https://github.com/jenkinsci/blueocean-plugin/pull/1403  opened for this. If Vivek Pandey blesses it can get that in too. Good one. 

              People

              • Assignee:
                Unassigned
                Reporter:
                tsniatowski Tomasz Śniatowski
              • Votes:
                6 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: