From cb703a44a442e215fc65c6eb40ff6f7988061780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 25 Oct 2023 19:13:27 +0200 Subject: [PATCH] fix(ci): use getFullDisplayName() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since getProjectName() is not available for all types returned from utils.parentOrCurrentBuild(), which can result in a crash. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.linux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index eb6734ab41..239062504a 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -134,7 +134,8 @@ def getArch() { def getE2EBuildType() { if (utils.isPRBuild()) { return 'prs' } 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 }