Class RelativeTargetDirectory

  • All Implemented Interfaces:
    Describable<GitSCMExtension>

    public class RelativeTargetDirectory
    extends GitSCMExtension
    Instead of checking out to the top of the workspace, check out somewhere else.
    Author:
    Marc Guenther, Andrew Bayer, Kohsuke Kawaguchi
    • Constructor Detail

      • RelativeTargetDirectory

        @DataBoundConstructor
        public RelativeTargetDirectory​(String relativeTargetDir)
    • Method Detail

      • getRelativeTargetDir

        public String getRelativeTargetDir()
      • getWorkingDirectory

        public FilePath getWorkingDirectory​(GitSCM scm,
                                            Job<?,​?> context,
                                            FilePath workspace,
                                            EnvVars environment,
                                            TaskListener listener)
                                     throws IOException,
                                            InterruptedException,
                                            hudson.plugins.git.GitException
        Description copied from class: GitSCMExtension
        Given the workspace root directory, gets the working directory, which is where the repository will be checked out.
        Overrides:
        getWorkingDirectory in class GitSCMExtension
        Parameters:
        scm - GitSCM object
        context - job context for workspace root
        workspace - starting directory of workspace
        environment - environment variables used to eval
        listener - build log
        Returns:
        working directory or null to let other GitSCMExtension control it.
        Throws:
        IOException - on input or output error
        InterruptedException - when interrupted
        hudson.plugins.git.GitException - on git error