fix(ci): use getFullDisplayName()

Since getProjectName() is not available for all types returned from
utils.parentOrCurrentBuild(), which can result in a crash.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-10-25 19:13:27 +02:00
parent 1072033ef1
commit cb703a44a4
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ def getArch() {
def getE2EBuildType() { def getE2EBuildType() {
if (utils.isPRBuild()) { return 'prs' } if (utils.isPRBuild()) { return 'prs' }
def parent = utils.parentOrCurrentBuild() def parent = utils.parentOrCurrentBuild()
if (parent != null && parent.getProjectName() == 'nightly') { return nightly } if (parent == null) { return null }
if (parent.getFullDisplayName() =~ /nightly/) { return 'nightly' }
return null return null
} }