@ExportedBean public class DeployNowRunAction extends Object implements RunAction
Modifier and Type | Class and Description |
---|---|
static class |
DeployNowRunAction.Deployer |
static class |
DeployNowRunAction.RunListenerImpl |
static class |
DeployNowRunAction.TransientBuildActionFactoryImpl
Now that we are past 1.458 we can rely on TransientBuildActionFactory.
|
Modifier and Type | Field and Description |
---|---|
static Permission |
CONFIGURE |
static Permission |
DEPLOY |
static PermissionGroup |
DEPLOY_NOW |
static Permission |
JOB_AUTH |
static Permission |
OWN_AUTH |
Constructor and Description |
---|
DeployNowRunAction() |
DeployNowRunAction(Run<?,?> owner) |
Modifier and Type | Method and Description |
---|---|
DeployHostsContext<DeployNowRunAction> |
createHostsContext()
Called by stapler to create the
DeployHostsContext . |
org.kohsuke.stapler.HttpResponse |
doDeploy(org.kohsuke.stapler.StaplerRequest req) |
void |
doDeployText(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Sends out the raw console output.
|
org.kohsuke.stapler.HttpResponse |
doIndex(org.kohsuke.stapler.StaplerRequest req) |
Charset |
getCharset()
Gets the charset in which the log file is written.
|
String |
getDisplayName() |
String |
getIconFileName() |
List<String> |
getLog(int maxLines) |
File |
getLogFile()
Returns the log file.
|
InputStream |
getLogInputStream()
Returns an input stream that reads from the log file.
|
Reader |
getLogReader() |
AnnotatedLargeText |
getLogText()
Used to URL-bind
AnnotatedLargeText . |
Run |
getOwner() |
Set<DeploySourceOrigin> |
getSources() |
String |
getUrlName() |
boolean |
isHasOutput() |
boolean |
isLogUpdated()
Returns true if the log file is still being updated.
|
boolean |
isOneClickDeploy() |
boolean |
isOneClickDeployPossible() |
boolean |
isOneClickDeployValid() |
boolean |
isSaveConfigForced() |
void |
onAttached(Run r) |
void |
onBuildComplete() |
void |
onLoad() |
protected void |
run(DeployNowRunAction.Deployer deployer) |
void |
writeLogTo(long offset,
org.apache.commons.jelly.XMLOutput out)
Used from
console.jelly to write annotated log to the given output. |
public static final PermissionGroup DEPLOY_NOW
public static final Permission CONFIGURE
public static final Permission DEPLOY
public static final Permission OWN_AUTH
public static final Permission JOB_AUTH
public DeployNowRunAction()
public DeployNowRunAction(Run<?,?> owner)
public DeployHostsContext<DeployNowRunAction> createHostsContext()
DeployHostsContext
.@Exported(name="oneClickDeployPossible", visibility=2) public boolean isOneClickDeployPossible()
@Exported(name="oneClickDeployReady", visibility=2) public boolean isOneClickDeploy()
@Exported(name="oneClickDeployValid", visibility=2) public boolean isOneClickDeployValid()
public boolean isSaveConfigForced()
public org.kohsuke.stapler.HttpResponse doIndex(org.kohsuke.stapler.StaplerRequest req)
public org.kohsuke.stapler.HttpResponse doDeploy(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException
javax.servlet.ServletException
public String getIconFileName()
getIconFileName
in interface Action
public String getDisplayName()
getDisplayName
in interface Action
getDisplayName
in interface ModelObject
public Set<DeploySourceOrigin> getSources()
public String getUrlName()
getUrlName
in interface Action
public void onAttached(Run r)
onAttached
in interface RunAction
public void onBuildComplete()
onBuildComplete
in interface RunAction
public Run getOwner()
public boolean isHasOutput()
public File getLogFile()
public boolean isLogUpdated()
public final Charset getCharset()
public void doDeployText(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
IOException
public InputStream getLogInputStream() throws IOException
IOException
public Reader getLogReader() throws IOException
IOException
public void writeLogTo(long offset, org.apache.commons.jelly.XMLOutput out) throws IOException
console.jelly
to write annotated log to the given output.IOException
public AnnotatedLargeText getLogText()
AnnotatedLargeText
.public List<String> getLog(int maxLines) throws IOException
IOException
protected final void run(DeployNowRunAction.Deployer deployer)
Copyright © 2016–2022. All rights reserved.