1414 IMAGE_WIN_2022 : " platform-ingest-elastic-agent-windows-2022-1749258065"
1515 IMAGE_WIN_2025 : " platform-ingest-elastic-agent-windows-2025-1749258065"
1616
17+ # This section is used to define the plugins that will be used in the pipeline.
18+ # See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
19+ common :
20+ - google_oidc_plugin : &google_oidc_plugin
21+ # See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-gcp-oidc.tf
22+ # This plugin authenticates to Google Cloud using the OIDC token.
23+ elastic/oblt-google-auth#v1.3.0:
24+ lifetime : 10800 # seconds
25+ project-id : " elastic-observability-ci"
26+ project-number : " 911195782929"
27+ # see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/10
28+ # see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/11
29+ # - gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
30+ # avaly/gcp-secret-manager#v1.2.0:
31+ - gcp_serverless_secrets_plugin : &gcp_serverless_secrets_plugin
32+ elastic/gcp-secret-manager#v1.3.0-elastic:
33+ env :
34+ # These secrets are created in .github/workflows/serverless-project.yml
35+ ELASTICSEARCH_HOST : ea-serverless-it-elasticsearch-hostname
36+ ELASTICSEARCH_PASSWORD : ea-serverless-it-elasticsearch-password
37+ ELASTICSEARCH_USERNAME : ea-serverless-it-elasticsearch-username
38+ KIBANA_HOST : ea-serverless-it-kibana-hostname
39+ KIBANA_USERNAME : ea-serverless-it-kibana-username
40+ KIBANA_PASSWORD : ea-serverless-it-kibana-password
41+
1742steps :
1843 - label : Start ESS stack for integration tests
1944 key : integration-ess
@@ -417,6 +442,76 @@ steps:
417442 - v1.32.0
418443 - v1.33.0
419444
445+ - group : " Serverless integration test"
446+ key : integration-tests-serverless
447+ notify :
448+ - github_commit_status :
449+ context : " buildkite/elastic-agent-extended-testing - Serverless integration test"
450+ steps :
451+ - label : " Windows:2022:amd64:sudo"
452+ depends_on :
453+ - packaging-windows
454+ env :
455+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
456+ command : |
457+ buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
458+ .buildkite/scripts/buildkite-integration-tests.ps1 fleet true
459+ artifact_paths :
460+ - build/**
461+ - build/diagnostics/**
462+ retry :
463+ automatic :
464+ limit : 1
465+ agents :
466+ provider : " gcp"
467+ machineType : " n2-standard-8"
468+ image : " ${IMAGE_WIN_2022}"
469+ plugins :
470+ - *google_oidc_plugin
471+ - *gcp_serverless_secrets_plugin
472+
473+ - label : " Windows:2025:amd64:sudo"
474+ depends_on :
475+ - packaging-windows
476+ env :
477+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
478+ command : |
479+ buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
480+ .buildkite/scripts/buildkite-integration-tests.ps1 fleet true
481+ artifact_paths :
482+ - build/**
483+ - build/diagnostics/**
484+ retry :
485+ automatic :
486+ limit : 1
487+ agents :
488+ provider : " gcp"
489+ machineType : " n2-standard-8"
490+ image : " ${IMAGE_WIN_2025}"
491+ plugins :
492+ - *google_oidc_plugin
493+ - *gcp_serverless_secrets_plugin
494+ - label : " Ubuntu:2404:amd64:sudo"
495+ depends_on : packaging-ubuntu-x86-64
496+ env :
497+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
498+ command : |
499+ buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
500+ sudo -E .buildkite/scripts/buildkite-integration-tests.sh fleet true
501+ artifact_paths :
502+ - build/**
503+ - build/diagnostics/**
504+ retry :
505+ automatic :
506+ limit : 1
507+ agents :
508+ provider : " gcp"
509+ machineType : " n2-standard-8"
510+ image : " ${IMAGE_UBUNTU_2404_X86_64}"
511+ plugins :
512+ - *google_oidc_plugin
513+ - *gcp_serverless_secrets_plugin
514+
420515 - label : ESS stack cleanup
421516 depends_on :
422517 - integration-tests-ubuntu
@@ -441,6 +536,7 @@ steps:
441536 - integration-tests-win
442537 - integration-tests-rhel8
443538 - integration-tests-kubernetes
539+ - integration-tests-serverless
444540 allow_dependency_failure : true
445541 command : |
446542 buildkite-agent artifact download "build/*.xml" .
0 commit comments