Package org.jenkinsci.plugins.ansible
Class AnsibleVaultBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.ansible.AnsibleVaultBuilder
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
A builder which wraps an Ansible vault invocation.
- Author:
- Michael Cresswell
-
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 TypeFieldDescriptionFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(Run<?, ?> run, FilePath ws, Launcher launcher, TaskListener listener) voidperform(Run<?, ?> run, Node node, FilePath ws, Launcher launcher, TaskListener listener, EnvVars envVars) voidvoidsetAnsibleName(String ansibleName) voidsetContent(String content) voidvoidsetNewVaultCredentialsId(String newVaultCredentialsId) voidvoidsetVaultCredentialsId(String vaultCredentialsId) voidsetVaultTmpPath(String vaultTmpPath) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, 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, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Field Details
-
ansibleName
-
action
-
vaultCredentialsId
-
newVaultCredentialsId
-
vaultTmpPath
-
-
input
-
output
-
-
Constructor Details
-
AnsibleVaultBuilder
@DataBoundConstructor public AnsibleVaultBuilder()
-
-
Method Details
-
setAnsibleName
-
setAction
-
setVaultCredentialsId
-
setNewVaultCredentialsId
-
setVaultTmpPath
-
setContent
-
setInput
-
setOutput
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath ws, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull Node node, @NonNull FilePath ws, @NonNull Launcher launcher, @NonNull TaskListener listener, EnvVars envVars) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep- Overrides:
getRequiredMonitorServicein classBuilder
-