Class UploadBinaryScanRecorder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
io.jenkins.plugins.finitestateuploadbinaryscan.UploadBinaryScanRecorder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorDescriptionUploadBinaryScanRecorder
(String finiteStateClientId, String finiteStateSecret, String finiteStateOrganizationContext, String assetId, String version, Boolean externalizableId, String filePath, String businessUnitId, String createdByUserId, String productId, String artifactDescription, Boolean quickScan) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeEnvVar
(String input) boolean
boolean
getSecretTextValue
(AbstractBuild build, String credentialId) get secret values from formstatic boolean
boolean
boolean
perform
(AbstractBuild build, Launcher launcher, BuildListener listener) void
setArtifactDescription
(String artifactDescription) void
setAssetId
(String assetId) void
setBusinessUnitId
(String businessUnitId) void
setCreatedByUserId
(String createdByUserId) void
setExternalizableId
(boolean externalizableId) void
setFilePath
(String filePath) void
setFiniteStateClientId
(String finiteStateClientId) void
setFiniteStateOrganizationContext
(String finiteStateOrganizationContext) void
setFiniteStateSecret
(String finiteStateSecret) void
setProductId
(String productId) void
setQuickScan
(boolean quickScan) void
setVersion
(String version) static String
validateEnvVar
(String input) Methods inherited from class hudson.tasks.Recorder
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, 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
getRequiredMonitorService
-
Constructor Details
-
UploadBinaryScanRecorder
@DataBoundConstructor public UploadBinaryScanRecorder(String finiteStateClientId, String finiteStateSecret, String finiteStateOrganizationContext, String assetId, String version, Boolean externalizableId, String filePath, String businessUnitId, String createdByUserId, String productId, String artifactDescription, Boolean quickScan)
-
-
Method Details
-
getFiniteStateClientId
-
getFiniteStateSecret
-
getFiniteStateOrganizationContext
-
getAssetId
-
getVersion
-
getExternalizableId
public boolean getExternalizableId() -
getFilePath
-
getBusinessUnitId
-
getCreatedByUserId
-
getProductId
-
getArtifactDescription
-
getQuickScan
public boolean getQuickScan() -
isQuickScan
public boolean isQuickScan() -
setFiniteStateClientId
-
setFiniteStateSecret
-
setFiniteStateOrganizationContext
@DataBoundSetter public void setFiniteStateOrganizationContext(String finiteStateOrganizationContext) -
setAssetId
-
setVersion
-
setExternalizableId
@DataBoundSetter public void setExternalizableId(boolean externalizableId) -
setFilePath
-
setQuickScan
@DataBoundSetter public void setQuickScan(boolean quickScan) -
setBusinessUnitId
-
setCreatedByUserId
-
setProductId
-
setArtifactDescription
-
getSecretTextValue
get secret values from form- Parameters:
build
-credentialId
-- Returns:
-
escapeEnvVar
-
validateEnvVar
-
isDockerInstalled
public static boolean isDockerInstalled() -
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException - Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-