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 classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
Field Summary
Modifier and TypeFieldDescriptionFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
perform
(Run<?, ?> run, FilePath ws, Launcher launcher, TaskListener listener) void
perform
(Run<?, ?> run, Node node, FilePath ws, Launcher launcher, TaskListener listener, EnvVars envVars) void
void
setAnsibleName
(String ansibleName) void
setContent
(String content) void
void
setNewVaultCredentialsId
(String newVaultCredentialsId) void
void
setVaultCredentialsId
(String vaultCredentialsId) void
setVaultTmpPath
(String vaultTmpPath) Methods inherited from class hudson.tasks.Builder
all, getDescriptor, prebuild
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
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
Methods 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:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
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:
InterruptedException
IOException
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Overrides:
getRequiredMonitorService
in classBuilder
-