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) } /**