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