diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile
index e499b3e87b522fd31bdc5bb781519891c239db9c..eaff7f456d5b336de057d76a7487a9a0dc7762d5 100755
--- a/.ci/Jenkinsfile
+++ b/.ci/Jenkinsfile
@@ -231,5 +231,5 @@ pipeline {
 }
 
 String get_build_cache_on_failure_name() {
-	return (CONTAINER_BUILD_TYPE == "testing" ? "c${GERRIT_CHANGE_NUMBER}p${GERRIT_PATCHSET_NUMBER}" : jesh(script: "echo 'stable_\$(date --iso)'", returnStdout: true))
+	return (CONTAINER_BUILD_TYPE == "testing" ? "c${GERRIT_CHANGE_NUMBER}p${GERRIT_PATCHSET_NUMBER}" : jesh(script: "echo -n 'stable_\$(date --iso)'", returnStdout: true))
 }