Class ExtractResourceSCM

  • All Implemented Interfaces:
    hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.SCM>

    public class ExtractResourceSCM
    extends hudson.scm.NullSCM
    SCM useful for testing that extracts the given resource as a zip file.
    Author:
    Kohsuke Kawaguchi
    • Nested Class Summary

      • Nested classes/interfaces inherited from class hudson.scm.NullSCM

        hudson.scm.NullSCM.DescriptorImpl
      • Nested classes/interfaces inherited from interface hudson.ExtensionPoint

        hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
    • Field Summary

      • Fields inherited from class hudson.scm.SCM

        PERMISSIONS, TAG
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtractResourceSCM​(URL zip)  
      ExtractResourceSCM​(URL zip, String parentFolder)
      with this constructor your zip can contains a folder more useful to create a project test zip foo.zip foo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkout​(hudson.model.AbstractBuild<?,​?> build, hudson.Launcher launcher, hudson.FilePath workspace, hudson.model.BuildListener listener, File changeLogFile)  
      • Methods inherited from class hudson.scm.NullSCM

        calcRevisionsFromBuild, checkout, compareRemoteRevisionWith, createChangeLogParser
      • Methods inherited from class hudson.scm.SCM

        _calcRevisionsFromBuild, _for, _for, all, buildEnvironment, buildEnvVars, calcRevisionsFromBuild, compareRemoteRevisionWith, createEmptyChangeLog, createEmptyChangeLog, getApi, getBrowser, getDescriptor, getEffectiveBrowser, getKey, getModuleRoot, getModuleRoot, getModuleRoots, getModuleRoots, getType, guessBrowser, nullify, poll, pollChanges, postCheckout, postCheckout, processWorkspaceBeforeDeletion, processWorkspaceBeforeDeletion, requiresWorkspaceForPolling, supportsPolling
    • Constructor Detail

      • ExtractResourceSCM

        public ExtractResourceSCM​(URL zip)
      • ExtractResourceSCM

        public ExtractResourceSCM​(URL zip,
                                  String parentFolder)
        with this constructor your zip can contains a folder more useful to create a project test zip foo.zip foo
    • Method Detail

      • checkout

        public boolean checkout​(hudson.model.AbstractBuild<?,​?> build,
                                hudson.Launcher launcher,
                                hudson.FilePath workspace,
                                hudson.model.BuildListener listener,
                                @NonNull
                                File changeLogFile)
                         throws IOException,
                                InterruptedException
        Overrides:
        checkout in class hudson.scm.SCM
        Throws:
        IOException
        InterruptedException