Skip to content

Commit

Permalink
Cherry-pick #18592 to 7.x: [ci] speed builds for module specific chan…
Browse files Browse the repository at this point in the history
…ges (#18653)
  • Loading branch information
v1v authored May 20, 2020
1 parent 98972eb commit 63f8ae0
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 63f8ae0

Please sign in to comment.