Modifier and Type | Class and Description |
---|---|
static class |
MarathonRecorder.DescriptorImpl |
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static MarathonRecorder.DescriptorImpl |
DESCRIPTOR |
Constructor and Description |
---|
MarathonRecorder(String url) |
Modifier and Type | Method and Description |
---|---|
String |
getAppid() |
String |
getAppId()
Get the configured Marathon Application Id.
|
String |
getCredentialsId()
Get the Jenkins credentials id for this configuration.
|
String |
getDocker()
Get the configured docker image name.
|
boolean |
getDockerForcePull()
Get the configured docker image force pull flag.
|
List<MarathonVars> |
getEnv()
Return a list of environment variables.
|
String |
getFilename() |
boolean |
getForceUpdate()
Get the value of whether the Marathon update should be forced.
|
List<MarathonLabel> |
getLabels()
Return a list of labels.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
List<MarathonUri> |
getUris()
Return a list of configured URIs.
|
String |
getUrl()
Get the URL for the target Marathon instance.
|
boolean |
isForceUpdate()
Used by jelly or stapler to determine checkbox state.
|
boolean |
needsToRunAfterFinalized() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
void |
setAppid(String appid) |
void |
setCredentialsId(String credentialsId) |
void |
setDocker(String docker) |
void |
setDockerForcePull(boolean dockerForcePull) |
void |
setEnvironment(List<MarathonVars> env) |
void |
setFilename(String filename) |
void |
setForceUpdate(boolean forceUpdate) |
void |
setLabels(List<MarathonLabel> labels) |
void |
setUris(List<MarathonUri> uris) |
@Extension public static final MarathonRecorder.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public MarathonRecorder(String url)
public String getAppid()
public String getFilename()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public boolean needsToRunAfterFinalized()
needsToRunAfterFinalized
in class hudson.tasks.Publisher
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public String getAppId()
AppConfig
public String getUrl()
AppConfig
public boolean getForceUpdate()
AppConfig
getForceUpdate
in interface AppConfig
public String getDocker()
AppConfig
public boolean getDockerForcePull()
AppConfig
getDockerForcePull
in interface AppConfig
public String getCredentialsId()
AppConfig
getCredentialsId
in interface AppConfig
@DataBoundSetter public void setCredentialsId(String credentialsId)
public List<MarathonUri> getUris()
AppConfig
@DataBoundSetter public void setUris(List<MarathonUri> uris)
public List<MarathonLabel> getLabels()
AppConfig
@DataBoundSetter public void setLabels(List<MarathonLabel> labels)
@DataBoundSetter public void setDockerForcePull(@Nonnull boolean dockerForcePull)
public List<MarathonVars> getEnv()
AppConfig
@DataBoundSetter public void setEnvironment(List<MarathonVars> env)
public boolean isForceUpdate()
@DataBoundSetter public void setForceUpdate(boolean forceUpdate)
Copyright © 2016–2017. All rights reserved.