Class MultibranchScmRevisionVerifier

    • Field Detail

      • DISABLED

        public static boolean DISABLED
    • Constructor Detail

      • MultibranchScmRevisionVerifier

        public MultibranchScmRevisionVerifier()
    • 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 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