[CI] Skip build step, if KIBANA_BUILD_ID is given (#184121)

## Summary
Similar to other cases in our CI, if `KIBANA_BUILD_ID` is present, we
can skip the build step, and the test steps would download artifacts
from the referenced build.

If the elasticsearch side invocations to this pipeline provide
`KIBANA_BUILD_ID`, then we can save ~15-20m on these runs.

see: https://elastic.slack.com/archives/C5UDAFZQU/p1716450726916959

closes: https://github.com/elastic/kibana-operations/issues/116
This commit is contained in:
Alex Szabo 2024-05-23 15:48:21 +02:00 committed by GitHub
parent c99d8c2335
commit 989729fe39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,7 @@ steps:
provider: gcp
machineType: n2-standard-16
key: build
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''"
depends_on: pre-build
timeout_in_minutes: 60
retry: