Class RancherManifestBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.ranchermanager.RancherManifestBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
Freestyle / Pipeline build step: Rancher Manager manifest deploy
(
@Symbol("rancherManifest")).
Kubernetes namespace comes from the manifest. This step does not create namespaces and does not rewrite YAML. Git source is fetched on the agent via shallow clone.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanvoidperform(Run<?, ?> run, EnvVars buildEnv, TaskListener listener) voidbooleanWorkspace required when manifest source is Git (Jenkins fetch on agent).voidsetGitCredentialsId(String gitCredentialsId) voidsetManifestFilePath(String manifestFilePath) voidsetManifestSource(String manifestSource) voidsetManifestYaml(String manifestYaml) voidsetRancherConnectionMode(String rancherConnectionMode) voidsetRancherCredentialsId(String rancherCredentialsId) voidsetRancherUrl(String rancherUrl) voidsetRepositoryReferenceName(String repositoryReferenceName) voidsetRepositoryUrl(String repositoryUrl) voidsetValidateOnly(boolean validateOnly) voidsetVerboseLogging(boolean verboseLogging) voidsetWaitTimeoutSeconds(String waitTimeoutSeconds) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform
-
Field Details
-
MODE_INHERIT
- See Also:
-
MODE_MANUAL
- See Also:
-
SOURCE_REPOSITORY
- See Also:
-
SOURCE_YAML
- See Also:
-
DEFAULT_MANIFEST_FILE
- See Also:
-
DEFAULT_REPOSITORY_REFERENCE
- See Also:
-
-
Constructor Details
-
RancherManifestBuilder
-
-
Method Details
-
getClusterId
-
getManifestSource
-
setManifestSource
-
getRepositoryUrl
-
setRepositoryUrl
-
getManifestFilePath
-
setManifestFilePath
-
getRepositoryReferenceName
-
setRepositoryReferenceName
-
getGitCredentialsId
-
setGitCredentialsId
-
getManifestYaml
-
setManifestYaml
-
getRancherConnectionMode
-
setRancherConnectionMode
-
getRancherUrl
-
setRancherUrl
-
getRancherCredentialsId
-
setRancherCredentialsId
-
getWaitTimeoutSeconds
-
setWaitTimeoutSeconds
-
isValidateOnly
public boolean isValidateOnly() -
setValidateOnly
@DataBoundSetter public void setValidateOnly(boolean validateOnly) -
isVerboseLogging
public boolean isVerboseLogging() -
setVerboseLogging
@DataBoundSetter public void setVerboseLogging(boolean verboseLogging) -
requiresWorkspace
public boolean requiresWorkspace()Workspace required when manifest source is Git (Jenkins fetch on agent).- Specified by:
requiresWorkspacein interfaceSimpleBuildStep
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull EnvVars buildEnv, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-