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

Option to default checkout to a subdirectory.

    XMLWordPrintable

    Details

    • Sprint:
      Pipeline - December
    • Similar Issues:

      Description

      In some Pipelines it is needed to checkout the sources from the scm in a subdirectory. This option is currently only available in the Job configuration. This should also be selectable as a option in the declarative pipeline to make the Jenkinsfile more portable.

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Implemented this and folded it into a larger PR (https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/231) that also touches on options, so I decided it made more sense to combine.

            Show
            abayer Andrew Bayer added a comment - Implemented this and folded it into a larger PR ( https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/231 ) that also touches on options , so I decided it made more sense to combine.
            Hide
            abayer Andrew Bayer added a comment -

            Releasing in 1.2.6.

            Show
            abayer Andrew Bayer added a comment - Releasing in 1.2.6.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            content/doc/book/pipeline/syntax.adoc
            http://jenkins-ci.org/commit/jenkins.io/65203f603c03f17a2964cb136968a68cf176f9a1
            Log:
            Add JENKINS-44277 - new checkoutToSubdirectory('foo') option.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: content/doc/book/pipeline/syntax.adoc http://jenkins-ci.org/commit/jenkins.io/65203f603c03f17a2964cb136968a68cf176f9a1 Log: Add JENKINS-44277 - new checkoutToSubdirectory('foo') option.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                niecore Nico Mueller
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: