Class MultibranchScmRevisionVerifier

java.lang.Object
org.jenkinsci.plugins.workflow.libs.MultibranchScmRevisionVerifier
All Implemented Interfaces:
ExtensionPoint, LibraryStepRetrieverVerifier

@OptionalExtension(requirePlugins="workflow-multibranch") public class MultibranchScmRevisionVerifier extends Object implements LibraryStepRetrieverVerifier
  • Field Details

    • DISABLED

      public static boolean DISABLED
  • Constructor Details

    • MultibranchScmRevisionVerifier

      public MultibranchScmRevisionVerifier()
  • Method Details

    • verify

      public void verify(Run<?,?> run, TaskListener listener, SCM libraryScm, String name) throws IOException, InterruptedException
      Abort library retrieval if the specified build is from a Multibranch Pipeline configured to build the library's SCM and the revision being built is untrusted. Comparable to the defenses against untrusted users in SCMBinder, but here we care about the library rather than the Jenkinsfile.
      Specified by:
      verify in interface LibraryStepRetrieverVerifier
      Throws:
      AbortException - if the specified build is from a Multibranch Pipeline configured to build the library's SCM and the revision being built is untrusted
      IOException
      InterruptedException