Skip to content

Commit 72a60b7

Browse files
committed
[CI] fix null string with contains (elastic#20182)
1 parent b25dc57 commit 72a60b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ def loadConfigEnvVars(){
13301330
env.BUILD_ON_MACOS = (params.macosTest // UI Input parameter is set to true
13311331
|| !isPR() // For branches and tags
13321332
|| matchesPrLabel(label: 'macOS') // If `macOS` GH label (Case-Sensitive)
1333-
|| (env.GITHUB_COMMENT?.toLowerCase().contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive)
1333+
|| (env.GITHUB_COMMENT?.toLowerCase()?.contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive)
13341334
}
13351335

13361336
/**

0 commit comments

Comments
 (0)