ci: don't call startsWith on a null

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-10 14:57:46 +01:00
parent fcc423849b
commit 4e306fed06
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 1 additions and 1 deletions

2
ci/Jenkinsfile vendored
View File

@ -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([