33env :
44 DOCKER_COMPOSE_VERSION : " 1.25.5"
55 TERRAFORM_VERSION : " 1.6.4"
6+ IMAGE_UBUNTU_X86_64_FIPS : " platform-ingest-fleet-server-ubuntu-2204-fips-1751684469"
7+
8+ # This section is used to define the plugins that will be used in the pipeline.
9+ # See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
10+ common :
11+ - test_collector_plugin : &test_collector_plugin
12+ test-collector#v1.11.0:
13+ files : " build/test-*.xml"
14+ format : " junit"
15+ branches : " main"
16+ debug : true
17+ - bk_analytics_token_plugin : &bk_analytics_token_plugin
18+ elastic/vault-secrets#v0.1.0:
19+ path : " kv/ci-shared/platform-ingest/buildkite_analytics_token"
20+ field : " token"
21+ env_var : " BUILDKITE_ANALYTICS_TOKEN"
22+ - docker_elastic_login_plugin : &docker_elastic_login_plugin
23+ elastic/vault-docker-login#v0.6.0:
24+ secret_path : ' kv/ci-shared/platform-ingest/elastic_docker_registry'
625
726steps :
827 - group : " Check and build"
@@ -81,24 +100,31 @@ steps:
81100 - build/*.xml
82101 - build/coverage*.out
83102
84- - label : " :smartbear-testexecute: Run unit tests with requirefips build tag"
103+ - label : " :smartbear-testexecute: Run unit tests with requirefips build tag and FIPS provider "
85104 key : unit-test-fips-tag
86105 command : " .buildkite/scripts/unit_test.sh"
87106 env :
88107 FIPS : " true"
108+ GOEXPERIMENT : " systemcrypto"
109+ GO_DISTRO : " microsoft"
89110 agents :
90- provider : " gcp"
111+ provider : " aws"
112+ image : " ${IMAGE_UBUNTU_X86_64_FIPS}"
113+ instanceType : " m5.xlarge"
91114 artifact_paths :
92115 - build/*.xml
93116 - build/coverage*.out
94117
95- - label : " :smartbear-testexecute: Run fips140=only unit tests"
118+ - label : " :smartbear-testexecute: Run fips140=only unit tests with FIPS provider "
96119 key : unit-test-fips140-only
97120 command : " .buildkite/scripts/unit_test_fipsonly.sh"
98121 env :
99122 FIPS : " true"
123+ GO_DISTRO : " stdlib"
100124 agents :
101- provider : " gcp"
125+ provider : " aws"
126+ image : " ${IMAGE_UBUNTU_X86_64_FIPS}"
127+ instanceType : " m5.xlarge"
102128 artifact_paths :
103129 - build/*.xml
104130 - build/coverage*.out
@@ -166,7 +192,6 @@ steps:
166192 - label : " :gcloud: Cloud e2e Test"
167193 key : " cloud-e2e-test"
168194 env :
169- DOCKER_REGISTRY : " docker.elastic.co"
170195 DOCKER_IMAGE : " docker.elastic.co/beats-ci/elastic-agent-cloud-fleet"
171196 DOCKER_IMAGE_TAG : " pr-${BUILDKITE_PULL_REQUEST}-${BUILDKITE_COMMIT:0:12}"
172197 SNAPSHOT : " true"
@@ -175,6 +200,8 @@ steps:
175200 command : " .buildkite/scripts/cloud_e2e_test.sh"
176201 agents :
177202 provider : " gcp"
203+ plugins :
204+ - *docker_elastic_login_plugin
178205 depends_on :
179206 - step : " unit-test"
180207 allow_failure : false
@@ -191,7 +218,6 @@ steps:
191218 - label : " :gcloud: Cloud e2e FIPS Test"
192219 key : " cloud-e2e-fips-test"
193220 env :
194- DOCKER_REGISTRY : " docker.elastic.co"
195221 DOCKER_BASE_IMAGE : " docker.elastic.co/cloud-release/elastic-agent-cloud-fips"
196222 DOCKER_IMAGE : " docker.elastic.co/beats-ci/elastic-agent-cloud-fips"
197223 DOCKER_IMAGE_TAG : " pr-${BUILDKITE_PULL_REQUEST}-${BUILDKITE_COMMIT:0:12}"
@@ -202,6 +228,8 @@ steps:
202228 command : " .buildkite/scripts/cloud_e2e_test.sh"
203229 agents :
204230 provider : " gcp"
231+ plugins :
232+ - *docker_elastic_login_plugin
205233 depends_on :
206234 - step : " unit-test"
207235 allow_failure : false
@@ -219,14 +247,15 @@ steps:
219247 key : " publish"
220248 command : " .buildkite/scripts/build_push_docker_image.sh"
221249 env :
222- DOCKER_REGISTRY : " docker.elastic.co"
223250 DOCKER_IMAGE : " docker.elastic.co/observability-ci/fleet-server" # needs to rename for rollback
224251 DOCKER_IMAGE_SHA_TAG : " git-${BUILDKITE_COMMIT:0:12}" # needs to rename for rollback, should be "git-${BUILDKITE_COMMIT:0:12}"
225252 DOCKER_IMAGE_LATEST_TAG : " latest" # needs to rename for rollback
226253 DOCKER_IMAGE_GIT_TAG : " ${BUILDKITE_BRANCH}" # needs to rename for rollback
227254 if : " build.env('BUILDKITE_PULL_REQUEST') == 'false' && build.env('BUILDKITE_BRANCH') == 'main'"
228255 agents :
229256 provider : " gcp"
257+ plugins :
258+ - *docker_elastic_login_plugin
230259 depends_on :
231260 - step : " tests"
232261 allow_failure : false
0 commit comments