diff --git a/src/main/java/hudson/plugins/repo/ManifestAction.java b/src/main/java/hudson/plugins/repo/ManifestAction.java index 2bac3b6..3b7f7f2 100644 --- a/src/main/java/hudson/plugins/repo/ManifestAction.java +++ b/src/main/java/hudson/plugins/repo/ManifestAction.java @@ -28,6 +28,7 @@ import java.util.logging.Level; import java.util.logging.Logger; +import org.kohsuke.stapler.DataBoundSetter; import org.kohsuke.stapler.export.ExportedBean; import hudson.model.BuildBadgeAction; @@ -47,7 +48,7 @@ public class ManifestAction implements RunAction2, Serializable, BuildBadgeActio private static final long serialVersionUID = 1; private transient Run run; - private transient RevisionState revisionState; + private RevisionState revisionState; /** * Allow disambiguation of the action url when multiple {@link RevisionState} actions present. @@ -69,6 +70,7 @@ public class ManifestAction implements RunAction2, Serializable, BuildBadgeActio * * @param index the index, indexes less than or equal to {@code 1} will be discarded. */ + @DataBoundSetter public void setIndex(final Integer index) { this.index = index == null || index <= 1 ? null : index; try {