[8.18] [ci/ build_pr_and_deploy_cloud] Wait for pre-build (#210202) (#213937)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[ci/ build_pr_and_deploy_cloud] Wait for pre-build
(#210202)](https://github.com/elastic/kibana/pull/210202)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2025-03-11T14:43:37Z","message":"[ci/
build_pr_and_deploy_cloud] Wait for pre-build (#210202)\n\nbefore
building the distribution. CI stats depends on environment setup\nfrom
the pre-build
step.","sha":"f56e658f0bacb79091a7e837b13db5af01cb4dc1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Operations","release_note:skip","v9.0.0","skip-ci","backport:prev-major","ci:cloud-deploy","v9.1.0"],"title":"[ci/
build_pr_and_deploy_cloud] Wait for
pre-build","number":210202,"url":"https://github.com/elastic/kibana/pull/210202","mergeCommit":{"message":"[ci/
build_pr_and_deploy_cloud] Wait for pre-build (#210202)\n\nbefore
building the distribution. CI stats depends on environment setup\nfrom
the pre-build
step.","sha":"f56e658f0bacb79091a7e837b13db5af01cb4dc1"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/210202","number":210202,"mergeCommit":{"message":"[ci/
build_pr_and_deploy_cloud] Wait for pre-build (#210202)\n\nbefore
building the distribution. CI stats depends on environment setup\nfrom
the pre-build
step.","sha":"f56e658f0bacb79091a7e837b13db5af01cb4dc1"}}]}] BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-12 04:01:06 +11:00 committed by GitHub
parent eee9c7115f
commit d7ff506e03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,6 +34,8 @@ steps:
machineType: n2-standard-2
timeout_in_minutes: 5
- wait: ~
- command: .buildkite/scripts/steps/build_kibana.sh
label: Build Kibana Distribution
agents:
@ -45,13 +47,12 @@ steps:
diskSizeGb: 125
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''"
timeout_in_minutes: 90
key: build
retry:
automatic:
- exit_status: '-1'
limit: 3
- wait: ~
- command: .buildkite/scripts/steps/cloud/build_and_deploy.sh
label: 'Build and Deploy to Cloud'
agents:
@ -61,6 +62,7 @@ steps:
machineType: n2-standard-2
preemptible: true
timeout_in_minutes: 30
depends_on: build
retry:
automatic:
- exit_status: '-1'