Class Sec1MobileScanStep
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
io.jenkins.plugins.secone.security.mobile.Sec1MobileScanStep
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
Scans a mobile app binary (.apk, .aab, .ipa, ...) with Sec1 Mobile Security:
submits it, polls until the scan finishes, archives the findings and applies
a quality gate.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNull unless set explicitly; a configured threshold applies unless this is false.intintbooleanbooleanDownload the executive PDF report and archive it with the build.booleanResubmit once when a scan is interrupted ('partial'); never for a timeout.voidvoidsetActionOnThresholdBreached(String actionOnThresholdBreached) voidsetApplyThreshold(Boolean applyThreshold) voidsetAppName(String appName) voidsetAppVersion(String appVersion) voidsetArchiveFindings(boolean archiveFindings) voidsetArchiveReport(boolean archiveReport) voidsetArtifactSha256(String artifactSha256) voidsetArtifactUrl(String artifactUrl) Artifactory download URL; the scanner node fetches the binary itself instead of an upload.voidsetBaseUrl(String baseUrl) voidsetEngagementId(String engagementId) voidsetEnvironment(String environment) voidsetMinScore(Integer minScore) voidsetPollIntervalSeconds(int pollIntervalSeconds) voidsetResubmitPartial(boolean resubmitPartial) voidsetScanType(String scanType) voidvoidsetThreshold(Threshold threshold) voidsetTimeoutMinutes(int timeoutMinutes) 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
-
Sec1MobileScanStep
-
-
Method Details
-
getApiCredentialsId
-
getBinaryPath
-
getArtifactUrl
-
setArtifactUrl
Artifactory download URL; the scanner node fetches the binary itself instead of an upload. -
getArtifactSha256
-
setArtifactSha256
-
getBaseUrl
-
setBaseUrl
-
getAppName
-
setAppName
-
getAppVersion
-
setAppVersion
-
getEnvironment
-
setEnvironment
-
getScanType
-
setScanType
-
getSource
-
setSource
-
getEngagementId
-
setEngagementId
-
getPollIntervalSeconds
public int getPollIntervalSeconds() -
setPollIntervalSeconds
@DataBoundSetter public void setPollIntervalSeconds(int pollIntervalSeconds) -
getTimeoutMinutes
public int getTimeoutMinutes() -
setTimeoutMinutes
@DataBoundSetter public void setTimeoutMinutes(int timeoutMinutes) -
getApplyThreshold
Null unless set explicitly; a configured threshold applies unless this is false. -
setApplyThreshold
-
getThreshold
-
setThreshold
-
getActionOnThresholdBreached
-
setActionOnThresholdBreached
-
getMinScore
-
setMinScore
-
isArchiveReport
public boolean isArchiveReport()Download the executive PDF report and archive it with the build. Default false. -
setArchiveReport
@DataBoundSetter public void setArchiveReport(boolean archiveReport) -
isResubmitPartial
public boolean isResubmitPartial()Resubmit once when a scan is interrupted ('partial'); never for a timeout. Default true. -
setResubmitPartial
@DataBoundSetter public void setResubmitPartial(boolean resubmitPartial) -
isArchiveFindings
public boolean isArchiveFindings() -
setArchiveFindings
@DataBoundSetter public void setArchiveFindings(boolean archiveFindings) -
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars env, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-