jenkinsjenkins-workflow

Jenkins Workflow: Multibranch plugin checkout to subdirectory


How can I checkout from SCM in a Jenkins Workflow: Multibranch job into a subdirectory of the job workspace? Are there any option to this:

checkout scm

Solution

  • dir('subdir') {
        checkout scm
    }