From 905d884839fb366d8f307b4adc29c6f4769fb098 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 23 Jul 2020 08:41:55 +0100 Subject: [PATCH] [CI] fix null string with contains (#20182) --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 65704e98701..51265112a96 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1330,7 +1330,7 @@ def loadConfigEnvVars(){ env.BUILD_ON_MACOS = (params.macosTest // UI Input parameter is set to true || !isPR() // For branches and tags || matchesPrLabel(label: 'macOS') // If `macOS` GH label (Case-Sensitive) - || (env.GITHUB_COMMENT?.toLowerCase().contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive) + || (env.GITHUB_COMMENT?.toLowerCase()?.contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive) } /**