Class AbstractBuildScanner
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.jenkinsci.plugins.cortexcloud.builder.AbstractBuildScanner
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
- Direct Known Subclasses:
ImageBuildScanner
Common base for Cortex Cloud build steps.
ImageBuildScanner is currently the only concrete step. Additional scan steps are
planned, and they will share the options defined here (policy-violation gating, handling of
unparseable results, timeout) and the environment-expansion and abort helpers. The base class
keeps that behaviour consistent across steps.
-
Nested Class Summary
Nested 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
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidAborts the build with a clear message (turns the build red).intbooleanbooleanprotected StringresolveEnvs(String value, Run<?, ?> run, TaskListener listener) Expands $VAR / ${VAR} references in a step parameter using the build environment, matching the legacy plugin's resolveEnvs behaviour.voidsetFailBuildOnPolicyViolation(boolean failBuildOnPolicyViolation) voidsetFailOnUnparseableResults(boolean failOnUnparseableResults) voidsetTimeout(int timeout) protected IntegerMethods 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, perform, perform, requiresWorkspace
-
Constructor Details
-
AbstractBuildScanner
protected AbstractBuildScanner()
-
-
Method Details
-
isFailBuildOnPolicyViolation
public boolean isFailBuildOnPolicyViolation() -
setFailBuildOnPolicyViolation
@DataBoundSetter public void setFailBuildOnPolicyViolation(boolean failBuildOnPolicyViolation) -
isFailOnUnparseableResults
public boolean isFailOnUnparseableResults() -
setFailOnUnparseableResults
@DataBoundSetter public void setFailOnUnparseableResults(boolean failOnUnparseableResults) -
getTimeout
public int getTimeout() -
setTimeout
@DataBoundSetter public void setTimeout(int timeout) -
timeoutSecondsOrNull
- Returns:
- the configured timeout as a positive Integer, or null for "use CLI default".
-
resolveEnvs
protected String resolveEnvs(String value, Run<?, ?> run, TaskListener listener) throws IOException, InterruptedExceptionExpands $VAR / ${VAR} references in a step parameter using the build environment, matching the legacy plugin's resolveEnvs behaviour.- Throws:
IOExceptionInterruptedException
-
abort
Aborts the build with a clear message (turns the build red).- Throws:
AbortException
-