diff --git a/pom.xml b/pom.xml
index 641d17b..51a94ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -26,7 +26,7 @@
999999-SNAPSHOT
- 2.425
+ 2.426.1
@@ -61,8 +61,8 @@
io.jenkins.tools.bom
- bom-2.414.x
- 2465.va_e76ed7b_3061
+ bom-2.426.x
+ 2612.v3d6a_2128c0ef
pom
import
diff --git a/src/main/java/org/jenkinsci/plugins/customizebuildnow/AlternateBuildLabelConfiguration.java b/src/main/java/org/jenkinsci/plugins/customizebuildnow/AlternateBuildLabelConfiguration.java
index 28aa2a1..d80fde9 100644
--- a/src/main/java/org/jenkinsci/plugins/customizebuildnow/AlternateBuildLabelConfiguration.java
+++ b/src/main/java/org/jenkinsci/plugins/customizebuildnow/AlternateBuildLabelConfiguration.java
@@ -5,12 +5,18 @@
import jenkins.appearance.AppearanceCategory;
import jenkins.model.GlobalConfiguration;
import jenkins.model.GlobalConfigurationCategory;
+import net.sf.json.JSONObject;
import org.jenkinsci.Symbol;
+import org.kohsuke.stapler.StaplerRequest;
@Symbol("customizeBuildNow")
@Extension
public class AlternateBuildLabelConfiguration extends GlobalConfiguration {
+ public AlternateBuildLabelConfiguration() {
+ load();
+ }
+
private String alternateBuildNow;
private String alternateBuildWithParams;
@@ -41,6 +47,13 @@ public void setAlternateBuildButton(String alternateBuildButton) {
this.alternateBuildButton = alternateBuildButton;
}
+ @Override
+ public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
+ super.configure(req, json);
+ save();
+ return true;
+ }
+
public static AlternateBuildLabelConfiguration get() {
return GlobalConfiguration.all().get(AlternateBuildLabelConfiguration.class);
}