Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildBadgeAction and BadgeSummaryAction need to be serializable #1

Closed
bakito opened this issue Feb 23, 2018 · 0 comments
Closed

BuildBadgeAction and BadgeSummaryAction need to be serializable #1

bakito opened this issue Feb 23, 2018 · 0 comments
Assignees

Comments

@bakito
Copy link
Contributor

bakito commented Feb 23, 2018

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

@bakito bakito self-assigned this Feb 23, 2018
bakito added a commit that referenced this issue Feb 23, 2018
@bakito bakito closed this as completed Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant