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 Modifier and Type Field Description static boolean
DISABLED
-
Constructor Summary
Constructors Constructor Description MultibranchScmRevisionVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
verify(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.
-
-
-
Method Detail
-
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 inSCMBinder
, but here we care about the library rather than the Jenkinsfile.- Specified by:
verify
in 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 untrustedIOException
InterruptedException
-
-