Commit graph

6 commits

Author SHA1 Message Date
Alex Szabo
a89fb9b2fb
[Ops] Refactor env loading & fix agent-targeting rewrite (#178320)
## Summary
This PR refactors a bit of the pre-command env setup, separating parts,
so they can be individually skipped. Then it removes the setup-avoidance
based on agent types, as this won't be useful after the migration.

Also, it fixes a missed bit in the agent-targeting rewrite used for the
migration, where the `provider: 'gcp'` was missing, and adds an optional
targeting for the script.

- add gcp as provider to all rewritten agent targeting rules
- add option to target specific pipelines
- refactor env-var loading to a separated file
- refactor node installs so it can be switched by a flag
- skip node installing in (some) jobs that don't require it
2024-03-12 16:31:26 +01:00
Jon
0b23e346bf
[ci] Run sonarqube daily (#173961)
Adds a pipeline for a daily SonarQube scan.


https://buildkite.com/elastic/kibana-bot-sonarqube/builds/7#018ca703-4b56-4a56-b6ce-ae6630cd81e3
(ignore the pipeline name/slug, that was a copy paste error. I'll fix it
after)
2024-01-03 15:43:29 -06:00
Alex Szabo
0edc23e02a
[Ops] Skip buildkite hooks for non kibana jobs (#165597)
## Summary

Kibana's build jobs work on a different subset of executors than the
buildkite pipelines defined in `catalog-info.yaml`.

The former jobs require a set of `pre_command` / `post_command` steps to
prepare the jobs for building/testing kibana.
The latter don't have access rights to certain vault secrets (and
possibly other missing config from the Kibana world), but for now,
they're also not building Kibana, they just trigger other jobs, so we
can just skip the problematic hooks.

~~A probably good indicator I found for deciding whether we need the
kibana-related `pre_command` is the
`BUILDKITE_AGENT_META_DATA_AGENT_MANAGER` flag, that's set to `"kibana"`
in the case of the kibana executors.~~

We can try to match on the agent names for the CI-systems agents. They
seem to be starting with `bk-agent`.

This should allow for the
[kibana-tests](https://buildkite.com/elastic/kibana-tests) job to run.

Split from: https://github.com/elastic/kibana/pull/165346

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
2023-09-04 09:29:16 -07:00
Brian Seeders
be51f0a574
[Buildkite] Hourly CI / tracked branch pipeline (#111785) 2021-09-16 11:28:07 -04:00
Brian Seeders
01a599faa6
[buildkite] Move some functionality to a shared library (#102228) 2021-08-25 10:31:17 -04:00
Brian Seeders
54c3ca142e
[CI] Buildkite support with Baseline pipeline (#100492) 2021-06-01 13:11:07 -04:00