From 6ead52127f9ab9769a8041c983b41acb2d29d10e Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 20 May 2020 10:42:15 +0200 Subject: [PATCH] [ci] speed builds for module specific changes (#18592) --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index faac744e6203..522dce3fc0f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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)') } /**