Package hudson.plugins.octopusdeploy
Class AbstractOctopusDeployRecorderBuildStep
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.plugins.octopusdeploy.AbstractOctopusDeployRecorderBuildStep
-
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<hudson.tasks.Builder>,hudson.tasks.BuildStep,jenkins.tasks.SimpleBuildStep
- Direct Known Subclasses:
OctopusDeployPackRecorder,OctopusDeployPushBuildInformationRecorder,OctopusDeployPushRecorder
public abstract class AbstractOctopusDeployRecorderBuildStep extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStepThe AbstractOctopusDeployRecorder tries to take care of most of the Octopus Deploy server access.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractOctopusDeployRecorderBuildStep.AbstractOctopusDeployDescriptorImplStep-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringadditionalArgsThe additional arguments to pass to Octopus CLIprotected booleancancelOnTimeoutWhether to cancel the deployment if the deployment timeout is reachedprotected java.lang.StringdeploymentTimeoutSpecifies maximum time (timespan format) that the console session will wait for the deployment to finish(default 00:10:00)protected java.lang.StringenvironmentThe environment to deploy to, if we are deploying.protected OctopusDeployServeroctopusDeployServerCache for OctopusDeployServer instance used in deployment transient keyword prevents leaking API key to Job configurationprotected java.lang.StringprojectThe project name as defined in Octopus.protected java.lang.StringserverIdThe serverId to use for this deploymentprotected java.lang.StringspaceIdThe spaceId to use for this deploymentprotected java.lang.StringtenantThe Tenant to use for a deploy to in Octopus.protected java.lang.StringtenantTagprotected java.lang.StringtoolIdThe toolId to use for this deploymentprotected java.lang.StringvariablesThe variables to use for a deploy to in Octopus.protected booleanverboseLoggingWhether or not to enable verbose loggingprotected booleanwaitForDeploymentWhether or not perform will return control immediately, or wait until the Deployment task is completed.
-
Constructor Summary
Constructors Constructor Description AbstractOctopusDeployRecorderBuildStep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAdditionalArgs()booleangetCancelOnTimeout()java.lang.StringgetDeploymentTimeout()java.lang.StringgetEnvironment()protected static java.lang.StringgetExceptionMessage(java.lang.Exception ex)java.lang.StringgetProject()hudson.tasks.BuildStepMonitorgetRequiredMonitorService()java.lang.StringgetServerId()java.lang.StringgetSpaceId()java.lang.StringgetTenant()java.lang.StringgetTenantTag()java.lang.StringgetToolId()java.lang.StringgetVariables()booleangetVerboseLogging()booleangetWaitForDeployment()java.lang.BooleanhasAdvancedOptions()static java.lang.BooleanhasSpaces()voidsetAdditionalArgs(java.lang.String additionalArgs)voidsetVerboseLogging(boolean verboseLogging)-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
octopusDeployServer
protected transient OctopusDeployServer octopusDeployServer
Cache for OctopusDeployServer instance used in deployment transient keyword prevents leaking API key to Job configuration
-
serverId
protected java.lang.String serverId
The serverId to use for this deployment
-
toolId
protected java.lang.String toolId
The toolId to use for this deployment
-
spaceId
protected java.lang.String spaceId
The spaceId to use for this deployment
-
project
protected java.lang.String project
The project name as defined in Octopus.
-
environment
protected java.lang.String environment
The environment to deploy to, if we are deploying.
-
variables
protected java.lang.String variables
The variables to use for a deploy to in Octopus.
-
tenant
protected java.lang.String tenant
The Tenant to use for a deploy to in Octopus.
-
tenantTag
protected java.lang.String tenantTag
-
additionalArgs
protected java.lang.String additionalArgs
The additional arguments to pass to Octopus CLI
-
waitForDeployment
protected boolean waitForDeployment
Whether or not perform will return control immediately, or wait until the Deployment task is completed.
-
verboseLogging
protected boolean verboseLogging
Whether or not to enable verbose logging
-
deploymentTimeout
protected java.lang.String deploymentTimeout
Specifies maximum time (timespan format) that the console session will wait for the deployment to finish(default 00:10:00)
-
cancelOnTimeout
protected boolean cancelOnTimeout
Whether to cancel the deployment if the deployment timeout is reached
-
-
Method Detail
-
getServerId
public java.lang.String getServerId()
-
getToolId
public java.lang.String getToolId()
-
getSpaceId
public java.lang.String getSpaceId()
-
hasSpaces
public static java.lang.Boolean hasSpaces()
-
getProject
public java.lang.String getProject()
-
getEnvironment
public java.lang.String getEnvironment()
-
getVariables
public java.lang.String getVariables()
-
getTenant
public java.lang.String getTenant()
-
getTenantTag
public java.lang.String getTenantTag()
-
getAdditionalArgs
public java.lang.String getAdditionalArgs()
-
setAdditionalArgs
@DataBoundSetter public void setAdditionalArgs(java.lang.String additionalArgs)
-
getWaitForDeployment
public boolean getWaitForDeployment()
-
getVerboseLogging
public boolean getVerboseLogging()
-
setVerboseLogging
@DataBoundSetter public void setVerboseLogging(boolean verboseLogging)
-
getDeploymentTimeout
public java.lang.String getDeploymentTimeout()
-
getCancelOnTimeout
public boolean getCancelOnTimeout()
-
hasAdvancedOptions
public java.lang.Boolean hasAdvancedOptions()
-
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorServicein interfacehudson.tasks.BuildStep- Overrides:
getRequiredMonitorServicein classhudson.tasks.Builder
-
getExceptionMessage
protected static java.lang.String getExceptionMessage(java.lang.Exception ex)
-
-