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.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
ConstructorsConstructorDescriptionHLScanModelBuilder(String modelName, String hlClientId, String hlClientSecret, String folderToScan, boolean failOnUnsupported, FailOnDetectionSeverityEnum failOnSeverity) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.hiddenlayer.sdk.ModelScanServicevoidExecute the build step: - Scan the ML model in the specified folder by calling the HiddenLayer Model Scanner - Report resultsvoidsetFailOnSeverity(FailOnDetectionSeverityEnum failOnSeverity) voidsetFailOnUnsupported(boolean failOnUnsupported) voidsetFolderToScan(String folderToScan) voidsetHlClientId(String hlClientId) voidsetHlClientSecret(String hlClientSecret) voidsetModelName(String modelName) voidsetModelScanService(com.hiddenlayer.sdk.ModelScanService modelScanService) Methods 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, 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:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOExceptionAbortException
-