@Extension
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class PipelineRestfulAPI
extends com.cloudbees.workflow.rest.AbstractWorkflowJobActionHandler
Constructor and Description |
---|
PipelineRestfulAPI() |
Modifier and Type | Method and Description |
---|---|
hudson.model.Queue.WaitingItem |
_doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
hudson.model.ParametersDefinitionProperty pp,
hudson.model.Cause cause,
jenkins.util.TimeDuration delay)
Interprets the form submission and schedules a build for a parameterized job.
|
org.kohsuke.stapler.HttpResponse |
doAddParameter(org.kohsuke.stapler.StaplerRequest req) |
void |
doBuild(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
jenkins.util.TimeDuration delay) |
Pipeline |
doIndex() |
org.kohsuke.stapler.HttpResponse |
doRemoveParameter(String params) |
org.kohsuke.stapler.HttpResponse |
doUpdate(String script) |
org.jenkinsci.plugins.workflow.job.WorkflowRun |
findBuild(org.jenkinsci.plugins.workflow.job.WorkflowJob job,
String uuid) |
static hudson.model.CauseAction |
getBuildCause(jenkins.model.ParameterizedJobMixIn.ParameterizedJob job,
org.kohsuke.stapler.StaplerRequest req)
Computes the build cause, using RemoteCause or UserCause as appropriate.
|
hudson.model.ParameterDefinition |
getParameterDefinition(hudson.model.ParametersDefinitionProperty pp,
String name)
Gets the
ParameterDefinition of the given name, if any. |
static String |
getUrl(org.jenkinsci.plugins.workflow.job.WorkflowJob job) |
String |
getUrlName() |
createFor, getJob, type
public static final String URL_BASE
public static String getUrl(org.jenkinsci.plugins.workflow.job.WorkflowJob job)
public String getUrlName()
getUrlName
in interface hudson.model.Action
getUrlName
in class com.cloudbees.workflow.rest.AbstractAPIActionHandler<org.jenkinsci.plugins.workflow.job.WorkflowJob>
public Pipeline doIndex()
public org.kohsuke.stapler.HttpResponse doUpdate(@QueryParameter String script) throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doAddParameter(org.kohsuke.stapler.StaplerRequest req)
public org.kohsuke.stapler.HttpResponse doRemoveParameter(@QueryParameter String params)
public void doBuild(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, @QueryParameter jenkins.util.TimeDuration delay) throws IOException, javax.servlet.ServletException, InterruptedException
IOException
javax.servlet.ServletException
InterruptedException
public org.jenkinsci.plugins.workflow.job.WorkflowRun findBuild(org.jenkinsci.plugins.workflow.job.WorkflowJob job, String uuid)
public hudson.model.Queue.WaitingItem _doBuild(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp, hudson.model.ParametersDefinitionProperty pp, hudson.model.Cause cause, @QueryParameter jenkins.util.TimeDuration delay) throws IOException, javax.servlet.ServletException
This method is supposed to be invoked from ParameterizedJobMixIn.doBuild(StaplerRequest, StaplerResponse, TimeDuration)
.
IOException
javax.servlet.ServletException
@CheckForNull public hudson.model.ParameterDefinition getParameterDefinition(hudson.model.ParametersDefinitionProperty pp, String name)
ParameterDefinition
of the given name, if any.@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static hudson.model.CauseAction getBuildCause(jenkins.model.ParameterizedJobMixIn.ParameterizedJob job, org.kohsuke.stapler.StaplerRequest req)
Copyright © 2016–2021. All rights reserved.