From 7d8974fc65a17879880a9d77c7aaf4586537e0b8 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 23 Jul 2020 08:28:21 +0100 Subject: [PATCH] [CI] fix null string with contains --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e844420e079..fcf8c2ac8b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1343,7 +1343,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) } /**