The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
sec1MobileScan: Execute Sec1 Mobile Security ScanapiCredentialsId : String
SEC1_API_KEY.
binaryPath : String
.apk, .aab, .ipa (also .xapk/split bundles). Wildcards are allowed but must match exactly one file, e.g. app/build/outputs/apk/release/*.apk.
Required unless Artifactory URL is set. When both are set, the binary is not uploaded; its SHA-256 is sent as the Artifact SHA-256 so the scan is tied to the exact file this build produced.
actionOnThresholdBreached : String (optional)
appName : String (optional)
appVersion : String (optional)
${BUILD_NUMBER}.
applyThreshold : boolean (optional)
archiveFindings : boolean (optional)
sec1-mobile-findings.json and archive it with the build, so builds can be compared and the gate audited.
archiveReport : boolean (optional)
sec1-mobile-report.pdf, so it can be opened from the build page. Off by default. The report is generated on request, which can take a few minutes. If it cannot be downloaded, the build log shows a warning and the build result is not affected.
The report is requested from the Base URL first. If the scanner nodes do not serve it, it is fetched from the Sec1 control plane, so the agent then needs to reach Sec1.
artifactSha256 : String (optional)
artifactUrl : String (optional)
https://artifactory.example.com/artifactory/mobile-releases/my-app/42/app-release.apk. Environment variables are expanded, e.g. ${ARTIFACT_URL}.
When set, the binary is not uploaded: the scanner node downloads it from Artifactory with the credential configured on the node, so Jenkins needs no Artifactory credential for this step. The URL must be under the Artifactory base and repository configured on the node, end in .apk, .aab, .xapk or .ipa, and contain no credentials.
baseUrl : String (optional)
https://scanner.example.com/ai-sast-mobile. The binary goes to a scanner node inside your network, never to the Sec1 control plane.SEC1_MOBILE_BASE_URL environment variable is used, e.g. set once under Manage Jenkins → System → Global properties. It is separate from SEC1_INSTANCE_URL, which only applies to the SCA/SAST steps. The build log shows which value was used.
engagementId : String (optional)
environment : String (optional)
uat or prod.
minScore : int (optional)
pollIntervalSeconds : int (optional)
resubmitPartial : boolean (optional)
partial because it was interrupted (for example the scanner node restarted or lost contact), submit it once more. Never done when the reason is a timeout such as stale_scan_timeout: a new scan would stop at the same limit. Uncheck to never resubmit. Default on.
scanType : String (optional)
source : String (optional)
jenkins:JOB_NAME#BUILD_NUMBER; keep the jenkins: prefix.
threshold (optional)
A severity breaches when its count is non-zero and greater than or equal to the configured value: 0 fails on the first finding of that severity, 10 fails when 10 or more are found. Leave a field empty to not check that severity. On a breach the build is marked as selected (Fail, Unstable or Continue).
criticalThreshold : String (optional)
highThreshold : String (optional)
mediumThreshold : String (optional)
lowThreshold : String (optional)
statusAction : String (optional)
timeoutMinutes : int (optional)
If the stage is wrapped in a Pipeline timeout(...), give that a few minutes more than this value, so this step reports the timeout first.
sec1Security: Execute Sec1 Security ScanapiCredentialsId : String
This needs to be the ID of an existing "Sec1 API Key" credential. The key will be used to access Sec1 api.
actionOnThresholdBreached : String (optional)
applyThreshold : boolean (optional)
archiveReport : boolean (optional)
sec1-sca-report.pdf (SCA Security Assessment) and sec1-sast-report.pdf (SAST, comprehensive). Off by default.
Reports are generated on request, so this adds a few seconds per scan. If a download fails, the build log shows a warning and the build result is not affected. Not used with asyncScan (fire-and-forget), since the step does not wait for the scan to finish.
asyncScan : boolean (optional)
cliInstallation : String (optional)
runSast : boolean (optional)
runSca : boolean (optional)
sastIncrementalScan : boolean (optional)
sastInstallation : String (optional)
sastMode : String (optional)
sbomFile : String (optional)
scaInstallation : String (optional)
scaMode : String (optional)
scanMode : String (optional)
sbomFile parameter instead of CLI generation.)
scanTag : String (optional)
scmUrl : String (optional)
threshold (optional)
criticalThreshold : String (optional)
highThreshold : String (optional)
mediumThreshold : String (optional)
lowThreshold : String (optional)
statusAction : String (optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.