@@ -353,6 +353,7 @@ steps:
353353 # this should help detecting issues earlier in the development cycle
354354 - label : " Trigger Serverless Beats Tests"
355355 if : build.pull_request.id != null
356+ <<<<<<< HEAD
356357 plugins :
357358 - monorepo-diff#v1.2.0:
358359 diff : " git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD"
@@ -367,3 +368,36 @@ steps:
367368 build :
368369 commit : " ${BUILDKITE_COMMIT}"
369370 branch : " ${BUILDKITE_BRANCH}"
371+ =======
372+ trigger : " beats-agent-serverless-tests"
373+ build :
374+ commit : " ${BUILDKITE_COMMIT}"
375+ branch : " ${BUILDKITE_BRANCH}"
376+ if_changed :
377+ include :
378+ - .buildkite/serverless.beats.tests.yml
379+ - .buildkite/scripts/steps/beats_tests.sh
380+ - .buildkite/hooks/pre-command
381+
382+ # NOTE: This should help detecting issues earlier in the development cycle
383+ # See https://github.com/elastic/elastic-agent/issues/11604
384+ - label : " Trigger Elastic Agent Package"
385+ if : build.pull_request.id != null
386+ commands :
387+ - .buildkite/scripts/steps/trigger-elastic-agent-package.sh
388+ - .buildkite/scripts/steps/trigger-elastic-agent-package.sh | buildkite-agent pipeline upload
389+ if_changed :
390+ include :
391+ - .buildkite/pipeline.elastic-agent-package.yml
392+ - .buildkite/scripts/steps/package.sh
393+ - .buildkite/scripts/steps/trigger-elastic-agent-package.sh
394+
395+ # wait for CI to be done
396+ - wait : ~
397+
398+ - label : " Publish to serverless"
399+ branches : main
400+ trigger : " agentless-serverless-release"
401+ build :
402+ commit : " ${BUILDKITE_COMMIT}"
403+ >>>>>>> cffc2cdff (ci(packaging): let's test the packaging pipeline on PRs too (#11612))
0 commit comments