mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
add newInstance so these test builders are usable when running via hpi:run
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24467 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
26f290b5b7
commit
e9009a6de1
2 files changed
+6
No files matched your search
@@ -53,5 +53,8 @@ public class FailureBuilder extends Builder {
|
||||
public String getDisplayName() {
|
||||
return "Always fail";
|
||||
}
|
||||
public FailureBuilder newInstance(StaplerRequest req, JSONObject data) {
|
||||
return new FailureBuilder();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -53,5 +53,8 @@ public class UnstableBuilder extends Builder {
|
||||
public String getDisplayName() {
|
||||
return "Make build unstable";
|
||||
}
|
||||
public UnstableBuilder newInstance(StaplerRequest req, JSONObject data) {
|
||||
return new UnstableBuilder();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user