Class ImageScanner
java.lang.Object
org.jenkinsci.plugins.cortexcloud.scanner.Scanner
org.jenkinsci.plugins.cortexcloud.scanner.ImageScanner
Scans a container image with "cortexcli image scan".
The image is identified by its reference (e.g. myrepo/app:1.2.3). The CLI talks
to the local Docker daemon to read the image, optionally via a caller-supplied
--docker-host. CI metadata (pipeline/build IDs) is forwarded so results are
correlated in the Cortex console.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCommand(String cliPath) Builds the concrete CLI argument list given the resolved CLI path.protected StringHuman-readable description of what is being scanned (for logs).protected IntegerTimeout in seconds for the scan process, or null/non-positive for none.
-
Constructor Details
-
ImageScanner
-
-
Method Details
-
buildCommand
Description copied from class:ScannerBuilds the concrete CLI argument list given the resolved CLI path. The first element must be the CLI executable path.- Specified by:
buildCommandin classScanner- Throws:
IOExceptionInterruptedException
-
describeTarget
Description copied from class:ScannerHuman-readable description of what is being scanned (for logs).- Specified by:
describeTargetin classScanner
-
getTimeoutSeconds
Description copied from class:ScannerTimeout in seconds for the scan process, or null/non-positive for none.- Specified by:
getTimeoutSecondsin classScanner
-