Skip to content

Commit

Permalink
[CI] run everything for branches/tags (elastic#20057)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jul 21, 2020
1 parent 0e049f0 commit ad72016
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1146,11 +1146,18 @@ def reportCoverage(){
}
}

// isChanged treats the patterns as regular expressions. In order to check if
// any file in a directoy is modified use `^<path to dir>/.*`.
/**
* isChanged treats the patterns as regular expressions. In order to check if
* any file in a directoy is modified use `^<path to dir>/.*`.
*
* In addition, there are another two alternatives to report that there are
* changes, when `runAllStages` parameter is set to true or when running on a
* branch/tag basis.
*/
def isChanged(patterns){
return (
params.runAllStages
params.runAllStages // when runAllStages UI parameter is set to true
|| !isPR() // when running on a branch/tag
|| isGitRegionMatch(patterns: patterns, comparator: 'regexp')
)
}
Expand Down

0 comments on commit ad72016

Please sign in to comment.