Skip to content

Commit fd3bc1d

Browse files
committed
try cleaning workspace on build and only leaving .tmp on exit
1 parent 6cf46c2 commit fd3bc1d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ pipeline {
406406
TMPDIR = "${env.WORKSPACE}/.tmp/igrins2/"
407407
}
408408
steps {
409+
cleanWs()
409410
echo "Running build #${env.BUILD_ID} on ${env.NODE_NAME}"
410411
checkout scm
411412
sh '.jenkins/scripts/setup_dirs.sh'
@@ -424,11 +425,11 @@ pipeline {
424425
)
425426
echo "Changing permissions on files"
426427
sh 'chmod -Rv 775 .tmp'
427-
// echo "Deleting IGRINS2 Tests workspace ${env.WORKSPACE}"
428-
// cleanWs()
429-
// dir("${env.WORKSPACE}@tmp") {
430-
// deleteDir()
431-
// }
428+
echo "Deleting IGRINS2 Tests workspace ${env.WORKSPACE}"
429+
cleanWs(patterns: [[pattern: '.tmp', type: EXCLUDE]], deleteDirs: true)
430+
dir("${env.WORKSPACE}@tmp") {
431+
deleteDir()
432+
}
432433
} // end always
433434
} // end post
434435
} // end stage

0 commit comments

Comments
 (0)