Package io.jenkins.plugins.hiddenlayer
Class HLScanModelBuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.hiddenlayer.HLScanModelBuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
HLScanModelBuilder provides a build step that scans an ML model using the HiddenLayer Model Scanner.
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionHLScanModelBuilder
(String modelName, String hlClientId, String hlClientSecret, String folderToScan, boolean failOnUnsupported, FailOnDetectionSeverityEnum failOnSeverity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.hiddenlayer.sdk.ModelScanService
void
Execute the build step: - Scan the ML model in the specified folder by calling the HiddenLayer Model Scanner - Report resultsvoid
setFailOnSeverity
(FailOnDetectionSeverityEnum failOnSeverity) void
setFailOnUnsupported
(boolean failOnUnsupported) void
setFolderToScan
(String folderToScan) void
setHlClientId
(String hlClientId) void
setHlClientSecret
(String hlClientSecret) void
setModelName
(String modelName) void
setModelScanService
(com.hiddenlayer.sdk.ModelScanService modelScanService) 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
-
Constructor Details
-
Method Details
-
getModelName
-
setModelName
-
getHlClientId
-
setHlClientId
-
getHlClientSecret
-
setHlClientSecret
-
getFolderToScan
-
setFolderToScan
-
getFailOnUnsupported
public boolean getFailOnUnsupported() -
setFailOnUnsupported
@DataBoundSetter public void setFailOnUnsupported(boolean failOnUnsupported) -
getFailOnSeverity
-
getModelScanService
public com.hiddenlayer.sdk.ModelScanService getModelScanService() -
perform
public void perform(Run<?, ?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws InterruptedException, IOException, AbortExceptionExecute the build step: - Scan the ML model in the specified folder by calling the HiddenLayer Model Scanner - Report results- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
AbortException
-