Skip to content

Commit 087390b

Browse files
v1vmergify[bot]
authored andcommitted
fix(bk): serverless-beats-tests start failing after merging #10734 (#10906)
(cherry picked from commit 0a1cf18) # Conflicts: # .buildkite/hooks/pre-command # .buildkite/pipeline.yml
1 parent 27cfc1b commit 087390b

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.buildkite/hooks/pre-command

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-package" ]]; then
3434
fi
3535
fi
3636

37+
<<<<<<< HEAD
3738
if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
3839
echo "Setting credentials"
3940
# Set GCP credentials
41+
=======
42+
if [[ ("$BUILDKITE_PIPELINE_SLUG" == "buildkite-elastic-agent-integration-matrix") || ("$BUILDKITE_PIPELINE_SLUG" == "beats-agent-serverless-tests") ]]; then
43+
echo "Setting GCP credentials"
44+
>>>>>>> 0a1cf18cf (fix(bk): serverless-beats-tests start failing after merging #10734 (#10906))
4045
export GOOGLE_APPLICATION_GCP_SECRET=$(retry 5 vault kv get -format=json -field=data ${CI_GCP_OBS_PATH})
4146
echo "${GOOGLE_APPLICATION_GCP_SECRET}" > ./gcp.json
4247
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ./gcp.json)

.buildkite/pipeline.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,32 @@ steps:
343343
build:
344344
commit: "${BUILDKITE_COMMIT}"
345345
branch: "${BUILDKITE_BRANCH}"
346+
<<<<<<< HEAD
347+
=======
348+
349+
# Trigger for pull requests - Serverless Beats Tests
350+
# this should help detecting issues earlier in the development cycle
351+
- label: "Trigger Serverless Beats Tests"
352+
if: build.pull_request.id != null
353+
plugins:
354+
- monorepo-diff#v1.2.0:
355+
diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"
356+
interpolation: false
357+
watch:
358+
- path:
359+
- .buildkite/serverless.beats.tests.yml
360+
- .buildkite/scripts/steps/beats_tests.sh
361+
- .buildkite/hooks/pre-command
362+
config:
363+
trigger: "beats-agent-serverless-tests"
364+
build:
365+
commit: "${BUILDKITE_COMMIT}"
366+
branch: "${BUILDKITE_BRANCH}"
367+
368+
# wait for CI to be done
369+
- wait: ~
370+
371+
- label: "Publish to serverless"
372+
branches: main
373+
trigger: "agentless-serverless-release"
374+
>>>>>>> 0a1cf18cf (fix(bk): serverless-beats-tests start failing after merging #10734 (#10906))

0 commit comments

Comments
 (0)