Created
June 2, 2017 13:28
-
-
Save mig82/c7134c3c90c6a3f2577d7177a3fb1bfe to your computer and use it in GitHub Desktop.
Clone a git repo into a specific subdir.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
checkout([ | |
$class: 'GitSCM', | |
branches: [ | |
[name: '*/branchname'] | |
], | |
doGenerateSubmoduleConfigurations: false, | |
extensions: [ | |
[ | |
$class: 'RelativeTargetDirectory', | |
relativeTargetDir: 'MyDirectory' | |
] | |
], | |
submoduleCfg: [], | |
userRemoteConfigs: [ | |
[ | |
credentialsId: 'myId', | |
url: 'https://github.com/jenkinsci/jenkins.git' | |
] | |
] | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment