Commit 2f2db10 1 parent b342d7b commit 2f2db10 Copy full SHA for 2f2db10
File tree 2 files changed +16
-3
lines changed
src/main/java/org/jenkinsci/plugins/customizebuildnow
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
<properties >
28
28
<changelist >999999-SNAPSHOT</changelist >
29
- <jenkins .version>2.425 </jenkins .version>
29
+ <jenkins .version>2.426.1 </jenkins .version>
30
30
</properties >
31
31
32
32
<developers >
61
61
<dependencies >
62
62
<dependency >
63
63
<groupId >io.jenkins.tools.bom</groupId >
64
- <artifactId >bom-2.414 .x</artifactId >
65
- <version >2465.va_e76ed7b_3061 </version >
64
+ <artifactId >bom-2.426 .x</artifactId >
65
+ <version >2612.v3d6a_2128c0ef </version >
66
66
<type >pom</type >
67
67
<scope >import</scope >
68
68
</dependency >
Original file line number Diff line number Diff line change 5
5
import jenkins .appearance .AppearanceCategory ;
6
6
import jenkins .model .GlobalConfiguration ;
7
7
import jenkins .model .GlobalConfigurationCategory ;
8
+ import net .sf .json .JSONObject ;
8
9
import org .jenkinsci .Symbol ;
10
+ import org .kohsuke .stapler .StaplerRequest ;
9
11
10
12
@ Symbol ("customizeBuildNow" )
11
13
@ Extension
12
14
public class AlternateBuildLabelConfiguration extends GlobalConfiguration {
13
15
16
+ public AlternateBuildLabelConfiguration () {
17
+ load ();
18
+ }
19
+
14
20
private String alternateBuildNow ;
15
21
16
22
private String alternateBuildWithParams ;
@@ -41,6 +47,13 @@ public void setAlternateBuildButton(String alternateBuildButton) {
41
47
this .alternateBuildButton = alternateBuildButton ;
42
48
}
43
49
50
+ @ Override
51
+ public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
52
+ super .configure (req , json );
53
+ save ();
54
+ return true ;
55
+ }
56
+
44
57
public static AlternateBuildLabelConfiguration get () {
45
58
return GlobalConfiguration .all ().get (AlternateBuildLabelConfiguration .class );
46
59
}
You can’t perform that action at this time.
0 commit comments