From 3587f94106cb47488dc23256d156bec2c3ace8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 10 Nov 2023 14:57:46 +0100 Subject: [PATCH] ci: don't call startsWith on a null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- test/e2e/ci/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index fc7e7338f2..c5ace1af04 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -182,7 +182,7 @@ def setBuildDescFromFile(fileNameOrPath) { currentBuild.description = utils.baseName(fileNameOrPath) return } - if (tokens.build.startsWith('pr')) { + if (tokens.build && tokens.build.startsWith('pr')) { currentBuild.displayName = tokens.build.replace(/^pr/, 'PR-') } currentBuild.description = formatMap([