public class AnchoreBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Anchore Plugin enables Jenkins users to scan container images, generate analysis, evaluate gate policy, and execute customizable queries. The plugin can be used in a freestyle project as a step or invoked from a pipeline script
Requirements:
Modifier and Type | Class and Description |
---|---|
static class |
AnchoreBuilder.DescriptorImpl |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
AnchoreBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
getAnnotations() |
boolean |
getAutoSubscribeTagUpdates() |
boolean |
getBailOnFail() |
boolean |
getBailOnPluginFail() |
AnchoreBuilder.DescriptorImpl |
getDescriptor() |
String |
getEngineCredentialsId() |
String |
getEngineRetries() |
String |
getEngineurl() |
boolean |
getEngineverify() |
boolean |
getForceAnalyze() |
String |
getName() |
String |
getPolicyBundleId() |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setAnnotations(List<Annotation> annotations) |
void |
setAutoSubscribeTagUpdates(boolean autoSubscribeTagUpdates) |
void |
setBailOnFail(boolean bailOnFail) |
void |
setBailOnPluginFail(boolean bailOnPluginFail) |
void |
setEngineCredentialsId(String engineCredentialsId) |
void |
setEngineRetries(String engineRetries) |
void |
setEngineurl(String engineurl) |
void |
setEngineverify(boolean engineverify) |
void |
setForceAnalyze(boolean forceAnalyze) |
void |
setPolicyBundleId(String policyBundleId) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public AnchoreBuilder(String name)
public String getName()
public String getEngineRetries()
public boolean getBailOnFail()
public boolean getBailOnPluginFail()
public String getPolicyBundleId()
public List<Annotation> getAnnotations()
public boolean getAutoSubscribeTagUpdates()
public boolean getForceAnalyze()
public String getEngineurl()
public String getEngineCredentialsId()
public boolean getEngineverify()
@DataBoundSetter public void setEngineRetries(String engineRetries)
@DataBoundSetter public void setBailOnFail(boolean bailOnFail)
@DataBoundSetter public void setBailOnPluginFail(boolean bailOnPluginFail)
@DataBoundSetter public void setPolicyBundleId(String policyBundleId)
@DataBoundSetter public void setAnnotations(List<Annotation> annotations)
@DataBoundSetter public void setAutoSubscribeTagUpdates(boolean autoSubscribeTagUpdates)
@DataBoundSetter public void setForceAnalyze(boolean forceAnalyze)
@DataBoundSetter public void setEngineurl(String engineurl)
@DataBoundSetter public void setEngineCredentialsId(String engineCredentialsId)
@DataBoundSetter public void setEngineverify(boolean engineverify)
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public AnchoreBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2019. All rights reserved.