Klasse SourceDirectoryFilter

java.lang.Object
io.jenkins.plugins.prism.SourceDirectoryFilter

public class SourceDirectoryFilter extends Object
Filters source code directories that are not approved in Jenkins' global configuration. A directory is considered safe if it is a sub-folder in the agent workspace. Directories outside the workspace need to be approved by an administrator in Jenkins global configuration page.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • SourceDirectoryFilter

      public SourceDirectoryFilter()
  • Methodendetails

    • getPermittedSourceDirectories

      public Set<String> getPermittedSourceDirectories(String workspacePath, Set<String> allowedSourceDirectories, Set<String> requestedSourceDirectories, edu.hm.hafner.util.FilteredLog log)
      Filters the specified collection of additional source code directories so that only permitted source directories will be returned. Permitted source directories are absolute paths that have been registered using PrismConfiguration.setSourceDirectories(java.util.List) or relative paths in the workspace.
      Parameter:
      workspacePath - the path to the workspace containing the affected files
      allowedSourceDirectories - the approved source directories from the system configuration section
      requestedSourceDirectories - source directories either as a relative path in the agent workspace or as an absolute path on the agent
      log - logger
      Gibt zurück:
      the permitted source directories