Skip to content

Commit b176dcd

Browse files
committed
fields must be public for snippet generator
1 parent 8892602 commit b176dcd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/jenkins/plugins/lockableresources/LockStep.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
public class LockStep extends AbstractStepImpl implements Serializable {
2323

2424
@CheckForNull
25-
private String resource = null;
25+
public String resource = null;
2626

2727
@CheckForNull
28-
private String label = null;
28+
public String label = null;
2929

30-
private int quantity = 0;
30+
public int quantity = 0;
3131

3232
/** name of environment variable to store locked resources in */
3333
@CheckForNull
@@ -36,7 +36,7 @@ public class LockStep extends AbstractStepImpl implements Serializable {
3636
public boolean inversePrecedence = false;
3737

3838
@CheckForNull
39-
private List<LockStepResource> extra = null;
39+
public List<LockStepResource> extra = null;
4040

4141
// it should be LockStep() - without params. But keeping this for backward compatibility
4242
// so `lock('resource1')` still works and `lock(label: 'label1', quantity: 3)` works too (resource is not required)
@@ -129,11 +129,11 @@ public String toString() {
129129
public void validate() throws Exception {
130130
LockStepResource.validate(resource, label, quantity);
131131
}
132-
132+
133133
public List<LockStepResource> getResources() {
134134
List<LockStepResource> resources = new ArrayList<>();
135135
resources.add(new LockStepResource(resource, label, quantity));
136-
136+
137137
if (extra != null) {
138138
resources.addAll(extra);
139139
}

0 commit comments

Comments
 (0)