Skip to content

Commit

Permalink
[ci] speed builds for module specific changes (elastic#18592)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed May 20, 2020
1 parent b1c70b0 commit 6ead521
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,11 @@ def loadConfigEnvVars(){

// Skip all the stages for changes only related to the documentation
env.ONLY_DOCS = isDocChangedOnly()

// Run the ITs by running only if the changeset affects a specific module.
// For such, it's required to look for changes under the module folder and exclude anything else
// such as ascidoc and png files.
env.MODULE = getGitMatchingGroup(pattern: '[a-z0-9]+beat\\/module\\/([^\\/]+)\\/.*', exclude: '^(((?!\\/module\\/).)*$|.*\\.asciidoc|.*\\.png)')
}

/**
Expand Down

0 comments on commit 6ead521

Please sign in to comment.