[JIRA] (JENKINS-57404) Jenkins Pipeline: exception when running post action

281 views
Skip to first unread message

andreas.zeiler@balluff.de (JIRA)

unread,
May 10, 2019, 7:52:03 AM5/10/19
to jenkinsc...@googlegroups.com
Andreas Zeiler created an issue
 
Jenkins / Bug JENKINS-57404
Jenkins Pipeline: exception when running post action
Issue Type: Bug Bug
Assignee: Unassigned
Components: pipeline
Created: 2019-05-10 11:51
Environment: Ubuntu 18.04 LTS Server
Jenkins ver. 2.164.2
Priority: Minor Minor
Reporter: Andreas Zeiler

Hello,

since Apr. 15th we get an exception when Jenkins is building our Pipeline Job.

 

Our "post" Pipeline looks like this:

 

 

post {
		always {
			recordIssues filters: [excludeFile('.*\\/DIR0\\/.*|.*\\/DIR1\\/.*|.*\\/DIR2\\/.*')], tools: [doxygen(pattern: 'doxygen-warnings.log')]
		
		    publishHTML([allowMissing: false, 
		    	alwaysLinkToLastBuild: false, 
		    	keepAll: true, 
		    	reportDir: 'Documentation/html', 
		    	reportFiles: 'index.html', 
		    	reportName: 'Firmware Documentation', 
		    	reportTitles: ''])
		}		success {
		    script {
				/* Notify Bitbucket */	
		    	notifyBitbucket('SUCCESS')
		    }
		}		failure {
		    script {
		    	/* Notify Bitbucket */	
		    	notifyBitbucket('FAILED')
		    }
		}
		
		cleanup {
			echo 'Done! Cleaning Workspace...'
			cleanWs()
		}

 

The Pipeline Job builds our Doxygen Documentation. In "post" we check the doxygen.log and publish the html file generated by doxygen.

 

The following exception occurs:

java.lang.NullPointerException
	at org.jenkinsci.plugins.structs.SymbolLookup.findDescriptor(SymbolLookup.java:147)
	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:178)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
	at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:158)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:155)
	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:156)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:160)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:130)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
	at WorkflowScript.run(WorkflowScript:48)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:134)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:792)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:414)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:412)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:791)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:781)
	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild(jar:file:/home/jenkins/.jenkins/plugins/pipeline-model-definition/WEB-INF/lib/pipeline-model-definition.jar!/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy:758)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
	at sun.reflect.GeneratedMethodAccessor448.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
	at sun.reflect.GeneratedMethodAccessor451.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:136)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:347)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:93)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:259)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:247)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
	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)

This happened after I updated some Jenkins Plugins. But I cannot locate the Plugin which makes the Problem.

 

Can anyone help?

 

Thanks

Kind regards

Andreas

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

andreas.zeiler@balluff.de (JIRA)

unread,
May 10, 2019, 7:54:01 AM5/10/19
to jenkinsc...@googlegroups.com
Andreas Zeiler updated an issue
Change By: Andreas Zeiler
Hello,

since Apr. 15th we get an exception when Jenkins is building our Pipeline Job.

 

Our "post" Pipeline looks like this:

 

 
{code:java}

post {
  always {
   recordIssues filters: [excludeFile('.*\\/DIR0\\/.*|.*\\/DIR1\\/.*|.*\\/DIR2\\/.*')], tools: [doxygen(pattern: 'doxygen-warnings.log')]
  
      publishHTML([allowMissing: false,
       alwaysLinkToLastBuild: false,
       keepAll: true,
       reportDir: 'Documentation/html',
       reportFiles: 'index.html',
       reportName: 'Firmware Documentation',
       reportTitles: ''])
  }  success {
      script {
    /* Notify Bitbucket */
       notifyBitbucket('SUCCESS')
      }
  }  failure {
      script {
       /* Notify Bitbucket */
       notifyBitbucket('FAILED')
      }
  }
  
  cleanup {
   echo 'Done! Cleaning Workspace...'
   cleanWs()
  }
{code}

 

The Pipeline Job builds our Doxygen Documentation. In "post" we check the doxygen.log and publish the html file generated by doxygen.

 

The following exception occurs:
{code:java}
Error when executing always post condition:
{code}

This happened after I updated some Jenkins Plugins. But I cannot locate the Plugin which makes the Problem.

 

Can anyone help?

 

Thanks

Kind regards

Andreas

 

andreas.zeiler@balluff.de (JIRA)

unread,
May 10, 2019, 7:57:01 AM5/10/19
to jenkinsc...@googlegroups.com
Andreas Zeiler updated an issue
Change By: Andreas Zeiler
Environment: Ubuntu 18.04 LTS Server
Ubuntu 16.04 LTS as slave

Jenkins ver. 2.164.2

andreas.zeiler@balluff.de (JIRA)

unread,
May 10, 2019, 8:57:02 AM5/10/19
to jenkinsc...@googlegroups.com
Andreas Zeiler updated Bug JENKINS-57404
 

Sorry for this Issue...

I did not notice that I somehow installed an very old "Warnings-NG" Plugin.

I tried a newer once...

 

Issue fixed

Change By: Andreas Zeiler
Status: Open Fixed but Unreleased
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages