Package io.jenkins.plugins.wattspeed
Class WattspeedBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.wattspeed.WattspeedBuilder
-
- All Implemented Interfaces:
hudson.ExtensionPoint
,hudson.model.Describable<hudson.tasks.Builder>
,hudson.tasks.BuildStep
,jenkins.tasks.SimpleBuildStep
public class WattspeedBuilder extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WattspeedBuilder.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
-
-
Field Summary
Fields Modifier and Type Field Description protected int
projects
static String
WATTSPEED_ENDPOINT
-
Constructor Summary
Constructors Constructor Description WattspeedBuilder(hudson.util.Secret token, int projects)
-
Method Summary
Modifier and Type Method Description static net.sf.json.JSONArray
fetchProjects(hudson.util.Secret token)
int
getProject_id()
String
getToken()
void
perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
-
-
-
Field Detail
-
WATTSPEED_ENDPOINT
public static final String WATTSPEED_ENDPOINT
- See Also:
- Constant Field Values
-
projects
protected final int projects
-
-
Method Detail
-
getToken
public String getToken()
-
getProject_id
public int getProject_id()
-
fetchProjects
public static net.sf.json.JSONArray fetchProjects(hudson.util.Secret token) throws Exception
- Throws:
Exception
-
perform
public void perform(hudson.model.Run<?,?> run, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
- Specified by:
perform
in interfacejenkins.tasks.SimpleBuildStep
-
-