|
It is useful when performing a release to wipe the workspace.
People typically use the WipeWorkspace extension with the GitSCM plugin. could we add a wipeWorkspace option to the "git" step.
Sample with the GitSCM plugin:
checkout([$class: 'GitSCM',
branches: [[name: '*/master']],
extensions: [
[$class: 'WipeWorkspace'],
[$class: 'LocalBranch', localBranch: 'master']],
userRemoteConfigs: [[credentialsId: 'github-credentials', url: 'https://github.com/cyrille-leclerc/my-spring-boot-app.git']]])
|