mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
Add @DataBoundConstructor to SleepBuilder along with test unit.
This commit is contained in:
1 parent
dd6eab438f
commit
562204628e
3 files changed
+29
-1
No files matched your search
@@ -29,6 +29,7 @@ import hudson.model.AbstractBuild;
|
||||
import hudson.model.BuildListener;
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.tasks.Builder;
|
||||
import org.kohsuke.stapler.DataBoundConstructor;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -40,6 +41,7 @@ import java.io.IOException;
|
||||
public class SleepBuilder extends Builder {
|
||||
public final long time;
|
||||
|
||||
@DataBoundConstructor
|
||||
public SleepBuilder(long time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user