Navigation :
Clean Workspace
Clean Workspace / Try/Catch
stage('test') {
node('LINUX') {
step([$class: 'WsCleanup'])
git branch: 'test', url: 'https://github.com/nrayapati/kcdc_test.git'
step([$class: 'WsCleanup'])
}
}
stage('test') {
node('LINUX') {
try {
git branch: 'test', url: 'https://github.com/nrayapati/kcdc_test.git'
sh 'ls -lrt'
} finally {
deleteDir()
sh 'ls -lrt'
}
}
}