Skip to content

Commit aebc372

Browse files
v1vmelchiormoulin
authored andcommitted
[CI] fix null string with contains (elastic#20182)
1 parent 3392581 commit aebc372

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
@@ -1343,7 +1343,7 @@ def loadConfigEnvVars(){
13431343
env.BUILD_ON_MACOS = (params.macosTest // UI Input parameter is set to true
13441344
|| !isPR() // For branches and tags
13451345
|| matchesPrLabel(label: 'macOS') // If `macOS` GH label (Case-Sensitive)
1346-
|| (env.GITHUB_COMMENT?.toLowerCase().contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive)
1346+
|| (env.GITHUB_COMMENT?.toLowerCase()?.contains('/test macos'))) // If `/test macos` in the GH comment (Case-Insensitive)
13471347
}
13481348

13491349
/**

0 commit comments

Comments
 (0)