Class DockerAncestorFingerprintFacet
java.lang.Object
jenkins.model.FingerprintFacet
org.jenkinsci.plugins.docker.commons.fingerprint.DockerFingerprintFacet
org.jenkinsci.plugins.docker.commons.fingerprint.DockerRunPtrFingerprintFacet
org.jenkinsci.plugins.docker.commons.fingerprint.DockerAncestorFingerprintFacet
- All Implemented Interfaces:
ExtensionPoint
Facet representing the fact that this Docker image was derived from another.
This facet would be added to the fingerprint corresponding to an image built using a
Dockerfile
.
getAncestorImageIds()
indicates the ID of the image specified in the FROM
instruction.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionGets the ancestor image that this image was built from.Methods inherited from class org.jenkinsci.plugins.docker.commons.fingerprint.DockerRunPtrFingerprintFacet
add, addFor, getImageId, getRangeSet, getRangeSet, getUsages
Methods inherited from class jenkins.model.FingerprintFacet
_setOwner, createActions, getFingerprint, getTimestamp, isFingerprintDeletionBlocked
-
Method Details
-
getAncestorImageIds
Gets the ancestor image that this image was built from. In principle there could be several, in case distinctDockerfile
s used distinctFROM
images, yet wound up producing the same result (because some corresponded to intermediate layers which were cached). This is unlikely but possible. The set may be empty in case you built a base image (FROM scratch
), in which case there is no ID for the ancestor.- Returns:
- a set of 64-digit IDs, typically a singleton
-