Created
February 7, 2017 19:28
-
-
Save jeffweiss/7e022c90b22bd77c88b278e3ca391f85 to your computer and use it in GitHub Desktop.
Jenkins clean checkout
This file contains hidden or 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
#!groovy | |
def call() { | |
checkout([ | |
$class: 'GitSCM', | |
branches: scm.branches, | |
extensions: scm.extensions + [[$class: 'WipeWorkspace'], [$class: 'LocalBranch']], | |
userRemoteConfigs: scm.userRemoteConfigs | |
]) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment