ci: don't call startsWith on a null
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
fcc423849b
commit
4e306fed06
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue