File tree 1 file changed +6
-6
lines changed
src/main/java/org/jenkins/plugins/lockableresources 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
public class LockStep extends AbstractStepImpl implements Serializable {
23
23
24
24
@ CheckForNull
25
- private String resource = null ;
25
+ public String resource = null ;
26
26
27
27
@ CheckForNull
28
- private String label = null ;
28
+ public String label = null ;
29
29
30
- private int quantity = 0 ;
30
+ public int quantity = 0 ;
31
31
32
32
/** name of environment variable to store locked resources in */
33
33
@ CheckForNull
@@ -36,7 +36,7 @@ public class LockStep extends AbstractStepImpl implements Serializable {
36
36
public boolean inversePrecedence = false ;
37
37
38
38
@ CheckForNull
39
- private List <LockStepResource > extra = null ;
39
+ public List <LockStepResource > extra = null ;
40
40
41
41
// it should be LockStep() - without params. But keeping this for backward compatibility
42
42
// so `lock('resource1')` still works and `lock(label: 'label1', quantity: 3)` works too (resource is not required)
@@ -129,11 +129,11 @@ public String toString() {
129
129
public void validate () throws Exception {
130
130
LockStepResource .validate (resource , label , quantity );
131
131
}
132
-
132
+
133
133
public List <LockStepResource > getResources () {
134
134
List <LockStepResource > resources = new ArrayList <>();
135
135
resources .add (new LockStepResource (resource , label , quantity ));
136
-
136
+
137
137
if (extra != null ) {
138
138
resources .addAll (extra );
139
139
}
You can’t perform that action at this time.
0 commit comments