From 47bec2d165d4bb0feec731654b25d9a21a7ff455 Mon Sep 17 00:00:00 2001 From: Adrien Bioteau Date: Wed, 5 Jan 2022 10:57:20 +0100 Subject: [PATCH 1/2] Remove transient keyword on revisionState field --- src/main/java/hudson/plugins/repo/ManifestAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/plugins/repo/ManifestAction.java b/src/main/java/hudson/plugins/repo/ManifestAction.java index 2bac3b6..72ed5c4 100644 --- a/src/main/java/hudson/plugins/repo/ManifestAction.java +++ b/src/main/java/hudson/plugins/repo/ManifestAction.java @@ -47,7 +47,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. From 5ceb8fe1518494c928d92b2fc4e4c6de243d135d Mon Sep 17 00:00:00 2001 From: Adrien Bioteau Date: Wed, 5 Jan 2022 11:20:41 +0100 Subject: [PATCH 2/2] Add @DataBoundSetter annotation --- src/main/java/hudson/plugins/repo/ManifestAction.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/hudson/plugins/repo/ManifestAction.java b/src/main/java/hudson/plugins/repo/ManifestAction.java index 72ed5c4..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; @@ -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 {