Skip to content

BuildBadgeAction and BadgeSummaryAction need to be serializable #1

@bakito

Description

@bakito

When used in different nodes, I get the following error.

Script:

  def summary = createSummary 'monitor.gif'
  summary.appendText("<h3>title</h3>", false)
  node (){
    // do something
    echo "a"
  }
  
  summary.appendText("<li>add result</li>", false)

Error:


[Pipeline] End of Pipeline
an exception which occurred:
	in field com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals
	in object com.cloudbees.groovy.cps.impl.BlockScopeEnv@c0d9e19
	in field com.cloudbees.groovy.cps.impl.CpsClosureDef.capture
	in object com.cloudbees.groovy.cps.impl.CpsClosureDef@280f0586
	in field com.cloudbees.groovy.cps.impl.CpsClosure.def
	in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@5a14122c
	in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures
	in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@21d4103e
	in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@21d4103e
Caused: java.io.NotSerializableException: com.jenkinsci.plugins.badge.action.BadgeSummaryAction

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions