Skip to content

Commit

Permalink
added MODULE env var definition
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Apr 30, 2024
1 parent f6bad74 commit c9922db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .buildkite/x-pack/pipeline.xpack.dockerlogbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ steps:

- label: ":ubuntu: Xpack/Dockerlogbeat Go Integration Tests"
key: "mandatory-int-test"
command: "cd x-pack/dockerlogbeat && mage goIntegTest"
command: |
set -euo pipefail
# defines the MODULE env var based on what's changed in a PR
source .buildkite/scripts/changesets.sh
defineModuleFromTheChangeSet x-pack/dockerlogbeat
echo "~~~ Running tests with env var MODULE=$$MODULE"
cd x-pack/dockerlogbeat
mage goIntegTest
env:
MODULE: $MODULE
agents:
Expand Down

0 comments on commit c9922db

Please sign in to comment.