Package io.snyk.jenkins
Class SnykStepBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.snyk.jenkins.SnykStepBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SnykConfig
,SimpleBuildStep
public class SnykStepBuilder extends Builder implements SimpleBuildStep, SnykConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SnykStepBuilder.SnykStepBuilderDescriptor
-
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
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description SnykStepBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdditionalArguments()
String
getOrganisation()
String
getProjectName()
String
getSeverity()
String
getSnykInstallation()
String
getSnykTokenId()
String
getTargetFile()
boolean
isFailOnError()
boolean
isFailOnIssues()
boolean
isMonitorProjectOnBuild()
void
perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener log)
void
setAdditionalArguments(String additionalArguments)
void
setFailOnError(boolean failOnError)
void
setFailOnIssues(boolean failOnIssues)
void
setMonitorProjectOnBuild(boolean monitorProjectOnBuild)
void
setOrganisation(String organisation)
void
setProjectName(String projectName)
void
setSeverity(String severity)
void
setSnykInstallation(String snykInstallation)
void
setSnykTokenId(String snykTokenId)
void
setTargetFile(String targetFile)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, 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, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
isFailOnIssues
public boolean isFailOnIssues()
- Specified by:
isFailOnIssues
in interfaceSnykConfig
-
setFailOnIssues
@DataBoundSetter public void setFailOnIssues(boolean failOnIssues)
-
isFailOnError
public boolean isFailOnError()
- Specified by:
isFailOnError
in interfaceSnykConfig
-
setFailOnError
@DataBoundSetter public void setFailOnError(boolean failOnError)
-
isMonitorProjectOnBuild
public boolean isMonitorProjectOnBuild()
- Specified by:
isMonitorProjectOnBuild
in interfaceSnykConfig
-
setMonitorProjectOnBuild
@DataBoundSetter public void setMonitorProjectOnBuild(boolean monitorProjectOnBuild)
-
getSeverity
public String getSeverity()
- Specified by:
getSeverity
in interfaceSnykConfig
-
setSeverity
@DataBoundSetter public void setSeverity(String severity)
-
getSnykTokenId
public String getSnykTokenId()
- Specified by:
getSnykTokenId
in interfaceSnykConfig
-
setSnykTokenId
@DataBoundSetter public void setSnykTokenId(String snykTokenId)
-
getTargetFile
public String getTargetFile()
- Specified by:
getTargetFile
in interfaceSnykConfig
-
setTargetFile
@DataBoundSetter public void setTargetFile(@CheckForNull String targetFile)
-
getOrganisation
public String getOrganisation()
- Specified by:
getOrganisation
in interfaceSnykConfig
-
setOrganisation
@DataBoundSetter public void setOrganisation(@CheckForNull String organisation)
-
getProjectName
public String getProjectName()
- Specified by:
getProjectName
in interfaceSnykConfig
-
setProjectName
@DataBoundSetter public void setProjectName(@CheckForNull String projectName)
-
getSnykInstallation
public String getSnykInstallation()
- Specified by:
getSnykInstallation
in interfaceSnykConfig
-
setSnykInstallation
@DataBoundSetter public void setSnykInstallation(String snykInstallation)
-
getAdditionalArguments
public String getAdditionalArguments()
- Specified by:
getAdditionalArguments
in interfaceSnykConfig
-
setAdditionalArguments
@DataBoundSetter public void setAdditionalArguments(@CheckForNull String additionalArguments)
-
perform
public void perform(@Nonnull Run<?,?> build, @Nonnull FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener log) throws SnykIssueException, SnykErrorException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
SnykIssueException
SnykErrorException
-
-