@ExportedBean public class DeployNowProjectAction extends Object implements Action
Modifier and Type | Field and Description |
---|---|
static Permission |
CONFIGURE
|
static Permission |
DEPLOY
|
static Permission |
JOB_AUTH
|
static Permission |
OWN_AUTH
|
Constructor and Description |
---|
DeployNowProjectAction(AbstractProject<?,?> owner)
Constructs the action for a specific project.
|
Modifier and Type | Method and Description |
---|---|
DeployHostsContext<DeployNowProjectAction> |
createHostsContext()
Called by stapler to create the
DeployHostsContext . |
org.kohsuke.stapler.HttpResponse |
doIndex(org.kohsuke.stapler.StaplerRequest req)
Starts the deploy now action.
|
DeployNowJobProperty.DescriptorImpl |
getDescriptor()
Returns the descriptor of the job property.
|
String |
getDisplayName() |
String |
getIconFileName() |
AbstractBuild<?,?> |
getLastDeployableBuild()
Returns the most recent successful or stable build of the project that this action is owned by.
|
AbstractProject<?,?> |
getOwner()
Returns the project that this action is owned by.
|
Set<DeploySourceOrigin> |
getSources()
Returns the valid sources for this type of deployment.
|
String |
getUrlName() |
boolean |
isOneClickDeploy()
Returns
true if and only if the deployment is a one click deployment. |
boolean |
isOneClickDeployPossible()
Returns
true if and only if the deployment could be a one click deployment. |
boolean |
isOneClickDeployValid()
Returns
true if and only if a one click deployment is valid. |
boolean |
isSaveConfigForced()
Returns
true if and only if the configuration must be saved (because we do not have a configuration). |
public static final Permission CONFIGURE
public static final Permission DEPLOY
public static final Permission OWN_AUTH
public static final Permission JOB_AUTH
public DeployNowProjectAction(AbstractProject<?,?> owner)
owner
- the ownerpublic 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 AbstractProject<?,?> getOwner()
@CheckForNull public AbstractBuild<?,?> getLastDeployableBuild()
public DeployHostsContext<DeployNowProjectAction> createHostsContext()
DeployHostsContext
.@Exported(name="oneClickDeployPossible", visibility=2) public boolean isOneClickDeployPossible()
true
if and only if the deployment could be a one click deployment.true
if and only if the deployment could be a one click deployment.@Exported(name="oneClickDeployReady", visibility=2) public boolean isOneClickDeploy()
true
if and only if the deployment is a one click deployment.true
if and only if the deployment is a one click deployment.@Exported(name="oneClickDeployValid", visibility=2) public boolean isOneClickDeployValid()
true
if and only if a one click deployment is valid. In other words
isOneClickDeployPossible()
says there are artifacts for deployment. isOneClickDeployValid()
says the configured one click deploy is fully defined and isOneClickDeploy()
says that the user
has enabled one click deploy for the project.true
if and only if a one click deployment is valid.public boolean isSaveConfigForced()
true
if and only if the configuration must be saved (because we do not have a configuration).true
if and only if the configuration must be saved (because we do not have a configuration).public org.kohsuke.stapler.HttpResponse doIndex(org.kohsuke.stapler.StaplerRequest req)
req
- the request.public DeployNowJobProperty.DescriptorImpl getDescriptor()
Copyright © 2016–2022. All rights reserved.