ci: don't call startsWith on a null
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
4d6c90acb3
commit
3587f94106
|
@ -182,7 +182,7 @@ def setBuildDescFromFile(fileNameOrPath) {
|
||||||
currentBuild.description = utils.baseName(fileNameOrPath)
|
currentBuild.description = utils.baseName(fileNameOrPath)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (tokens.build.startsWith('pr')) {
|
if (tokens.build && tokens.build.startsWith('pr')) {
|
||||||
currentBuild.displayName = tokens.build.replace(/^pr/, 'PR-')
|
currentBuild.displayName = tokens.build.replace(/^pr/, 'PR-')
|
||||||
}
|
}
|
||||||
currentBuild.description = formatMap([
|
currentBuild.description = formatMap([
|
||||||
|
|
Loading…
Reference in New Issue