Skip to content

Commit

Permalink
update method name and description
Browse files Browse the repository at this point in the history
  • Loading branch information
Siarhei Harbuz committed Mar 11, 2024
1 parent 6c59680 commit 1ca09df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .buildkite/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,10 @@ config_git() {
fi
}

getModuleNameFromTheChangeSet() {
defineModuleFromTheChangeSet() {
# This method gathers the module name, if required, in order to run the ITs 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 asciidoc and png files.
# This method defines and exports the MODULE variable with a particular module name or '' if changeset doesn't affect a specific module
local module_path=$1
if [[ "$module_path" == *"x-pack/"* ]]; then
local pattern=("$XPACK_MODULE_PATTERN")
Expand Down Expand Up @@ -484,7 +485,7 @@ if are_paths_changed "${packaging_changeset[@]}" ; then
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "beats-xpack-metricbeat" ]]; then
getModuleNameFromTheChangeSet "${MODULE_DIR}"
defineModuleFromTheChangeSet "${MODULE_DIR}"
fi

check_and_set_beat_vars

0 comments on commit 1ca09df

Please sign in to comment.