Class XygeniSaltCommandBuilder
- java.lang.Object
-
- io.jenkins.plugins.xygeni.saltcommand.XygeniSaltCommandBuilder
-
- Direct Known Subclasses:
XygeniSaltAtAddCommandBuilder
,XygeniSaltAtCommitCommandBuilder
,XygeniSaltAtInitCommandBuilder
,XygeniSaltAtRunCommandBuilder
,XygeniSaltAtSlsaCommandBuilder
,XygeniSaltVerifyCommandBuilder
public abstract class XygeniSaltCommandBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addCommandArgs(ArgumentListBuilder args, Run<?,?> build)
Handle non-general command args to compose final command call.XygeniSaltCommand
build()
protected abstract String
getCommand()
protected boolean
isAttestationCommand()
if this is an attestation command (salt at ---)XygeniSaltCommandBuilder
withAttestationOptions(AttestationOptions attestationOptions)
XygeniSaltCommandBuilder
withOutputOptions(OutputOptions outputOptions)
XygeniSaltCommandBuilder
withPaths(Paths paths)
XygeniSaltCommandBuilder
withRun(Run<?,?> build, Launcher launcher, TaskListener listener)
XygeniSaltCommandBuilder
withRun(Run<?,?> build, Launcher launcher, TaskListener listener, EnvVars env)
-
-
-
Method Detail
-
isAttestationCommand
protected boolean isAttestationCommand()
if this is an attestation command (salt at ---)
-
withRun
public XygeniSaltCommandBuilder withRun(Run<?,?> build, Launcher launcher, TaskListener listener)
-
withRun
public XygeniSaltCommandBuilder withRun(Run<?,?> build, Launcher launcher, TaskListener listener, EnvVars env)
-
withPaths
public XygeniSaltCommandBuilder withPaths(Paths paths)
-
withAttestationOptions
public XygeniSaltCommandBuilder withAttestationOptions(AttestationOptions attestationOptions)
-
withOutputOptions
public XygeniSaltCommandBuilder withOutputOptions(OutputOptions outputOptions)
-
getCommand
protected abstract String getCommand()
-
addCommandArgs
protected abstract void addCommandArgs(ArgumentListBuilder args, Run<?,?> build)
Handle non-general command args to compose final command call. Required args will not be checked here, it should be reported by salt command.
-
build
public XygeniSaltCommand build()
-
-