Skip to content

Commit

Permalink
jenkinsci#1 Make actions serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed Feb 23, 2018
1 parent 66e7878 commit bffbef3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jenkins-batch-plugin

Jenkins plugin to add badges and build summary entries from a ipeline.

This plugin was forked from the[Groovy Postbuild Plugin](https://github.com/jenkinsci/groovy-postbuild-plugin) which will in future use the API from this plugin.
This plugin was forked from the [Groovy Postbuild Plugin](https://github.com/jenkinsci/groovy-postbuild-plugin) which will in future use the API from this plugin.


# addBadge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
import org.kohsuke.stapler.export.ExportedBean;

import java.io.File;
import java.io.Serializable;

@ExportedBean(defaultVisibility = 2)
public class BadgeAction implements BuildBadgeAction {
public class BadgeAction implements BuildBadgeAction, Serializable {
private static final long serialVersionUID = 1L;
private final String iconPath;
private final String text;
private String color = "#000000";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
package com.jenkinsci.plugins.badge.action;

import java.io.Serializable;

import org.apache.commons.lang.StringEscapeUtils;
import org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.Whitelisted;
import org.kohsuke.stapler.export.Exported;
Expand All @@ -31,7 +33,8 @@
import hudson.model.Action;

@ExportedBean(defaultVisibility = 2)
public class BadgeSummaryAction implements Action {
public class BadgeSummaryAction implements Action, Serializable {
private static final long serialVersionUID = 1L;

private final String iconPath;
private String summaryText = "";
Expand Down

0 comments on commit bffbef3

Please sign in to comment.