Skip to content

Commit

Permalink
[CI] fix null string with contains (#20182)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jul 23, 2020
1 parent fe79a07 commit 7579d51
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 @@ -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)
}

/**
Expand Down

0 comments on commit 7579d51

Please sign in to comment.