/
ScriptFile.java
42 lines (31 loc) · 934 Bytes
/
ScriptFile.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.jenkinsci.plugins.postbuildscript.model;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import java.util.Collection;
public class ScriptFile extends PostBuildItem {
private final String filePath;
private ScriptType scriptType;
private boolean sandboxed;
@DataBoundConstructor
public ScriptFile(Collection<String> results, String filePath) {
super(results);
this.filePath = filePath;
}
public String getFilePath() {
return filePath;
}
public ScriptType getScriptType() {
return scriptType;
}
@DataBoundSetter
public void setScriptType(ScriptType scriptType) {
this.scriptType = scriptType;
}
public boolean isSandboxed() {
return sandboxed;
}
@DataBoundSetter
public void setSandboxed(boolean sandboxed) {
this.sandboxed = sandboxed;
}
}