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 4d6c90acb3
commit 3587f94106
1 changed files with 1 additions and 1 deletions

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