[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman updated JENKINS-60115 Jenkins / JENKINS-60115 NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Change By: Liam Newman Status: Fixed but Unreleased Closed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.11973.1575466261176%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman updated JENKINS-60115 Jenkins / JENKINS-60115 NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Change By: Liam Newman Status: Open Fixed but Unreleased Resolution: Fixed Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.6341.1574699340773%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman commented on JENKINS-60115 Re: NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Fixed by https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/363 Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.6343.1574699340821%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Phillip Verheyden commented on JENKINS-60115 Re: NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Yup the issue was the milestone null for sure. Threw in the version of the plugin you linked at that fixed it! Thanks! By the way, the reason I even did that in the first place was because of JENKINS-47729 because I didn't want to add an ordinal or name to my milestones. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.2161.1573918440210%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman commented on JENKINS-60115 Re: NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 The issue is cause by literal "null" values in your pipeline text, so it probably due to the milestone null calls. Could you try this version of the plugin? https://repo.jenkins-ci.org/incrementals/org/jenkinsci/plugins/pipeline-model-api/1.5.0-beta2-rc1705.52ffd0571b96/ It should stop the crash. I still need to see if I can create a test the reproduces the issue. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.1726.1573840560365%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Phillip Verheyden commented on JENKINS-60115 Re: NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Thanks for the response, sorry for the cloak and dagger. My pipeline script is a bit unique in that this is what my Jenkinsfile looks like in all my projects: mavenBuild{ } And then I have a shared library that has a `vars/mavenBuild.groovy` that has the declarative pipeline in it. Pasted below. import com.broadleafcommerce.jenkins.DependentProject import com.broadleafcommerce.jenkins.DependentProjectDiscoverer import com.broadleafcommerce.jenkins.ReleaseUtils import com.broadleafcommerce.jenkins.SonarUtils import com.broadleafcommerce.jenkins.Utils def call(body) { // evaluate the body block, and collect configuration into the object def pipelineParams = [:] body.resolveStrategy = Closure.DELEGATE_FIRST body.delegate = pipelineParams body() println "Building with Jenkinsfile settings: $pipelineParams" Utils.abortPreviousUpstreamBuilds(currentBuild) def extraBuildProfiles = pipelineParams.extraBuildProfiles ?: '' def extraDeployProfiles = pipelineParams.extraDeployProfiles ?: '' def sonarAnalysis = pipelineParams.sonarAnalysis ?: '' def javadocsDirectories = pipelineParams.javadocsDirectories ?: [] def referenceDocsDirectories = pipelineParams.referenceDocsDirectories ?: [] def agentLabel = pipelineParams.agentLabel ?: 'maven-jdk8' def requiresNpmrc = pipelineParams.requiresNpmrc != null ? pipelineParams.requiresNpmrc : false def forceDeploy = pipelineParams.forceDeploy != null ? pipelineParams.forceDeploy : false def mainBranch = Utils.isMainBranch(this) def shouldDeploy = mainBranch || forceDeploy || params.FORCE_DEPLOY || params.IS_RELEASE_BUILD def mavenVersion = '3.6' pipeline { parameters { string( // Disabling the classpathURLCheck is for a bug in OpenJDK that prevents Surefire from running properly // see https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class/53016532 defaultValue: '-Xmx2048m -Djdk.net.URLClassPath.disableClassPathURLCheck=true', name: 'MAVEN_OPTS', description: 'JVM parameters passed to Maven as MAVEN_OPTS' ) string( // Disabling the classpathURLCheck is for a bug in OpenJDK that prevents Surefire from running properly // see https://stackoverflow.com/questions/53010200/maven-surefire-could-not-find-forkedbooter-class/53016532 defaultValue: '', name: 'MAVEN_BUILD_ARGS', description: 'Arguments passed directly to the Maven process (like -X, -e, any extra -D arguments etc). Only applies to the build phase on CI builds, applies to _both_ release:prepare and release:perform on release builds' ) booleanParam( defaultValue: false, name: 'IS_RELEASE_BUILD', description: 'Indicate whether or not this build should be treated as a release' +' (GA, milestone, etc) If you would like to validate the versions that are autogenerated,' +' use VALIDATE_RELEASE_VERSION_DEFAULTS. Otherwise, current release version (in conjunction' +' with
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman commented on JENKINS-60115 Re: NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Thanks! Yes, I would appreciate a look at your pipeline. It shouldn't be all the code in your shared library, just the whatever is in in your pipline directive. I see where the error is being thrown, but it doesn't help me understand the underlying cause. Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.1478.1573769640237%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Liam Newman assigned an issue to Liam Newman Jenkins / JENKINS-60115 NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Change By: Liam Newman Assignee: Andrew Bayer Liam Newman Add Comment This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.202962.1573259182000.1232.1573754760239%40Atlassian.JIRA.
[JIRA] (JENKINS-60115) NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0
Title: Message Title Phillip Verheyden created an issue Jenkins / JENKINS-60115 NullPointerException in Declarative Pipeline after upgrade from 1.3.9 to 1.4.0 Issue Type: Bug Assignee: Andrew Bayer Components: pipeline-model-definition-plugin Created: 2019-11-09 00:26 Environment: Java 8, Jenkins kubernetes over JNLP Priority: Minor Reporter: Phillip Verheyden After the upgrade to 1.4.0, my builds started to fail with a NullPointerException when parsing the model. Here's the full stack trace: java.lang.NullPointerExceptionava.lang.NullPointerException at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep.withOrWithoutParens(ModelASTStep.java:111) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStep.toGroovy(ModelASTStep.java:100) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement.toGroovy(ModelASTElement.java:142) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTBranch.toGroovy(ModelASTBranch.java:41) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStage.toGroovy(ModelASTStage.java:115) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement.toGroovy(ModelASTElement.java:142) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement.toGroovyBlock(ModelASTElement.java:213) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTStages.toGroovy(ModelASTStages.java:44) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTElement.toGroovy(ModelASTElement.java:122) at org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTPipelineDef.toGroovy(ModelASTPipelineDef.java:58)