Class DockerImageExtractor

java.lang.Object
org.jenkinsci.plugins.docker.commons.DockerImageExtractor
All Implemented Interfaces:
ExtensionPoint

public abstract class DockerImageExtractor extends Object implements 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.
  • Constructor Details

    • DockerImageExtractor

      public DockerImageExtractor()
  • Method Details

    • getDockerImagesUsedByJob

      @NonNull public abstract Collection<String> getDockerImagesUsedByJob(@NonNull Job<?,?> job)
      Provides a collection of repository names namespace/name that 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

      @NonNull public static Set<String> getDockerImagesUsedByJobFromAll(@NonNull Job<?,?> job)
      Provides a set of repository names namespace/name that the job uses as seen by all the declared DockerImageExtractors. Returns an empty set if none is found.
      Parameters:
      job - the job being queried.
      Returns:
      a set of names, or an empty set.