Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52855

Add GIT_CHECKOUT_DIR env var if Freestyle job does checkout to subdirectory

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • None

      When a Freestyle job performs a checkout to a subdirectory the containing build script needs to make guesses about the name of that directory. Make it easier for containing scripts by adding the GIT_CHECKOUT_DIR environment variable when a Freestyle job performs a checkout to a subdirectory.

      Pipeline jobs and multibranch Pipeline jobs should not use the git plugin's checkout to a subdirectory facility. They should instead use the Pipeline steps which will perform the same type of operation within a Pipeline. For example, they should use the `dir` step or the `ws` step.

            markewaite Mark Waite
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: