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
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidverify(Run<?, ?> run, TaskListener listener, SCM libraryScm, String name) 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.
-
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, InterruptedExceptionAbort 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 inSCMBinder, but here we care about the library rather than the Jenkinsfile.- Specified by:
verifyin interfaceLibraryStepRetrieverVerifier- Throws:
AbortException- if the specified build is from a Multibranch Pipeline configured to build the library's SCM and the revision being built is untrustedIOExceptionInterruptedException
-