Skip to content

Commit

Permalink
[CI] fix null string with contains (elastic#20182)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Jul 30, 2020
1 parent e9c1b79 commit 905d884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit 905d884

Please sign in to comment.