[JIRA] (JENKINS-59560) Multibranch pipeline checkout NPE exception

11 views
Skip to first unread message

griarts@gmail.com (JIRA)

unread,
Sep 27, 2019, 7:12:03 AM9/27/19
to jenkinsc...@googlegroups.com
Artem Gryshyn created an issue
 
Jenkins / Bug JENKINS-59560
Multibranch pipeline checkout NPE exception
Issue Type: Bug Bug
Assignee: Denis Saponenko
Attachments: Screen Shot 2019-09-27 at 14.04.07.png
Components: pipeline-multibranch-defaults-plugin
Created: 2019-09-27 11:11
Environment: Jenkins version 2.176.3
openjdk version "1.8.0_222"
Pipeline: Multibranch 2.21
Pipeline: SCM Step 2.9
Priority: Major Major
Reporter: Artem Gryshyn

Multibranch pipeline jobs are failing on git checkout step after update to the latest versions of pipeline plugins. 
java.lang.NullPointerException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:836)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1000(WorkflowRun.java:133)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1101)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:133)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:91)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:78)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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)
Finished: FAILURE
Multibranch pipeline job does not fail with Pipeline: SCM Step 2.7 version, next versions (2.8, 2.9) leads to fails with NPE.

This is an example of Jenkinsfile:

 

pipeline {
  agent none
  options {
    timeout(time: 1, unit: 'HOURS')
    buildDiscarder(logRotator(numToKeepStr: '20'))
    disableConcurrentBuilds()
    timestamps()
  }
  stages {
    stage('Build and publish') {
      agent { label 'environment/qa && java/1.8' } 
      steps {
        git branch: 'test',
            url: 'g...@github.com:yourorganization/yourgit.git'
        sh 'echo test'
      }
    }
  }
}

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

griarts@gmail.com (JIRA)

unread,
Sep 27, 2019, 7:13:02 AM9/27/19
to jenkinsc...@googlegroups.com
Artem Gryshyn updated an issue
Change By: Artem Gryshyn
Multibranch pipeline jobs are failing on git checkout step after update to the latest versions of pipeline plugins. 
java.lang.NullPointerException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:836)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1000(WorkflowRun.java:133)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1101)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:133)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:91)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:78)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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)
Finished: FAILURE


Multibranch pipeline job does not fail with Pipeline: SCM Step 2.7 version, next versions (2.8, 2.9) leads to fails with NPE.

This is an example of Jenkinsfile:

 
{code:java}

pipeline {
  agent none
  options {
    timeout(time: 1, unit: 'HOURS')
    buildDiscarder(logRotator(numToKeepStr: '20'))
    disableConcurrentBuilds()
    timestamps()
  }
  stages {
    stage('Build and publish') {
      agent { label 'environment/qa && java/1.8' }
      steps {
        git branch: 'test',
            url: 'g...@github.com:yourorganization/yourgit.git'
        sh 'echo test'
      }
    }
  }
}
{code}
 

 

griarts@gmail.com (JIRA)

unread,
Sep 27, 2019, 7:14:03 AM9/27/19
to jenkinsc...@googlegroups.com
Artem Gryshyn updated an issue
Multibranch pipeline jobs are failing on git checkout step after update to the latest versions of pipeline plugins.  
{code: java }
java
.lang.NullPointerException
at org.jenkinsci.plugins.workflow.job.WorkflowRun.onCheckout(WorkflowRun.java:836)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$1000(WorkflowRun.java:133)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$SCMListenerImpl.onCheckout(WorkflowRun.java:1101)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:133)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:91)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:78)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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)
Finished: FAILURE
{code}

Multibranch pipeline job does not fail with Pipeline: SCM Step 2.7 version, next versions (2.8, 2.9) leads to fails with NPE.

This is an example of Jenkinsfile:

 
{code:java}
pipeline {
  agent none
  options {
    timeout(time: 1, unit: 'HOURS')
    buildDiscarder(logRotator(numToKeepStr: '20'))
    disableConcurrentBuilds()
    timestamps()
  }
  stages {
    stage('Build and publish') {
      agent { label 'environment/qa && java/1.8' }
      steps {
        git branch: 'test',
            url: 'g...@github.com:yourorganization/yourgit.git'
        sh 'echo test'
      }
    }
  }
}
{code}
 

 

griarts@gmail.com (JIRA)

unread,
Sep 30, 2019, 10:02:03 AM9/30/19
to jenkinsc...@googlegroups.com
Artem Gryshyn updated an issue
Change By: Artem Gryshyn
Component/s: workflow-multibranch-plugin
Component/s: pipeline-multibranch-defaults-plugin

griarts@gmail.com (JIRA)

unread,
Sep 30, 2019, 10:02:03 AM9/30/19
to jenkinsc...@googlegroups.com
Artem Gryshyn assigned an issue to Unassigned
Change By: Artem Gryshyn
Assignee: Denis Saponenko
Reply all
Reply to author
Forward
0 new messages