Index: Jenkinsfile
===================================================================
--- Jenkinsfile	(revision cece53cc8779d1dfbda6e59435c0fcb383718228)
+++ Jenkinsfile	(revision 0497bd6cecd899f17d5af510c55b6d0c4c887096)
@@ -172,5 +172,6 @@
 		echo "Archiving core dumps"
 		dir (BuildDir) {
-			if( fileExists 'tests/crashes' ) {
+			def exists = fileExists 'tests/crashes'
+			if( exists ) {
 				sh """${SrcDir}/tools/jenkins/archive-gen.sh"""
 				archiveArtifacts artifacts: "tests/crashes/**/*,lib/**/lib*.so*,setup.sh", fingerprint: true
