Class DockerImageExtractor
java.lang.Object
org.jenkinsci.plugins.docker.commons.DockerImageExtractor
- All Implemented Interfaces:
ExtensionPoint
Identifies the Docker images used by a Jenkins job. Docker-related plugins can use this
extension point to integrate with for example Docker HUB web hook support.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<String>getDockerImagesUsedByJob(Job<?, ?> job) Provides a collection of repository namesnamespace/namethat the job uses as seen by the implementing class.getDockerImagesUsedByJobFromAll(Job<?, ?> job) Provides a set of repository namesnamespace/namethat the job uses as seen by all the declaredDockerImageExtractors.
-
Constructor Details
-
DockerImageExtractor
public DockerImageExtractor()
-
-
Method Details
-
getDockerImagesUsedByJob
Provides a collection of repository namesnamespace/namethat the job uses as seen by the implementing class. Return an empty collection if none is found.- Parameters:
job- the job being queried.- Returns:
- a collection of names, or an empty collection.
-
getDockerImagesUsedByJobFromAll
Provides a set of repository namesnamespace/namethat the job uses as seen by all the declaredDockerImageExtractors. Returns an empty set if none is found.- Parameters:
job- the job being queried.- Returns:
- a set of names, or an empty set.
-