public class GcrVulnerabilityBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
GcrVulnerabilityBuilder.DescriptorImpl |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
GcrVulnerabilityBuilder(String imageName) |
Modifier and Type | Method and Description |
---|---|
static GcrVulnerabilityBuilder.DescriptorImpl |
descriptor() |
boolean |
executeOpaCommand(String filter,
hudson.FilePath opaFile,
hudson.FilePath opaRegoFile,
hudson.FilePath opaFileJsonInput,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener) |
void |
generateTable(ArrayList<io.grafeas.v1.Occurrence> scanOutput,
hudson.model.TaskListener taskListener) |
String |
getImageName() |
String |
getOpaInputForEvaluation(ArrayList<io.grafeas.v1.Occurrence> scanOutput,
hudson.model.TaskListener taskListener,
hudson.Launcher launcher) |
boolean |
opaEvalStatus(String opaOutput) |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath filePath,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener) |
void |
setImageName(String imageName) |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public GcrVulnerabilityBuilder(String imageName)
public String getImageName()
@DataBoundSetter public void setImageName(String imageName)
public static GcrVulnerabilityBuilder.DescriptorImpl descriptor()
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath filePath, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener taskListener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public boolean executeOpaCommand(String filter, hudson.FilePath opaFile, hudson.FilePath opaRegoFile, hudson.FilePath opaFileJsonInput, hudson.Launcher launcher, hudson.model.TaskListener taskListener) throws IOException, InterruptedException
IOException
InterruptedException
public boolean opaEvalStatus(String opaOutput)
public String getOpaInputForEvaluation(ArrayList<io.grafeas.v1.Occurrence> scanOutput, hudson.model.TaskListener taskListener, hudson.Launcher launcher)
public void generateTable(ArrayList<io.grafeas.v1.Occurrence> scanOutput, hudson.model.TaskListener taskListener)
Copyright © 2016–2022. All rights reserved.