mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
## Summary We're moving to a different vault address/instance when we're on the elastic-wide buildkite infra. While the migration is in progress, we can bridge between using this solution. ✅ Tested the status quo by running the PR pipeline (tests all the loads from `pre-command`) and by using `ci:cloud-deploy` (tests vault writing). 🟠 Tested the new vault provider on this PR: https://github.com/elastic/kibana/pull/171317 The secrets can be accessed, *but they can't be written* (neither by me nor) by the PR pipeline. Change requested here: https://elasticco.atlassian.net/browse/ENGPRD-414 However, this PR can be merged without figuring out write access to secrets, this will work as long as we're on the `kibana-buildkite` infra. --- Closes: https://github.com/elastic/kibana-operations/issues/28 Based on: https://github.com/elastic/kibana/pull/157220 --------- Co-authored-by: Jon <jon@budzenski.me>
48 lines
1.5 KiB
Groovy
48 lines
1.5 KiB
Groovy
#!/bin/groovy
|
|
|
|
library 'kibana-pipeline-library'
|
|
kibanaLibrary.load()
|
|
|
|
kibanaPipeline(timeoutMinutes: 210) {
|
|
githubCommitStatus.trackBuild(params.commit, 'kibana-ci-baseline') {
|
|
ciStats.trackBuild {
|
|
catchErrors {
|
|
slackNotifications.onFailure(
|
|
title: "*<${env.BUILD_URL}|[${params.branch}] Baseline Capture Failure>*",
|
|
message: "[${params.branch}/${params.commit}] Baseline Capture Failure",
|
|
) {
|
|
retryable.enable(2)
|
|
|
|
catchErrors {
|
|
workers.ci(
|
|
name: 'baseline-worker',
|
|
size: 'xl',
|
|
ramDisk: true,
|
|
runErrorReporter: false,
|
|
bootstrapped: false
|
|
) {
|
|
withGcpServiceAccount.fromVaultSecret('secret/ci/elastic-kibana/ci-artifacts-key', 'value') {
|
|
withEnv([
|
|
'DISABLE_BOOTSTRAP_VALIDATION=true',
|
|
]) {
|
|
kibanaPipeline.doSetup()
|
|
}
|
|
}
|
|
|
|
kibanaPipeline.withCiTaskQueue([parallel: 2]) {
|
|
catchErrors {
|
|
tasks([
|
|
kibanaPipeline.functionalTestProcess('xpack-baseline', './test/scripts/jenkins_xpack_baseline.sh'),
|
|
kibanaPipeline.scriptTask('Check Public API Docs', 'test/scripts/checks/baseline_plugin_public_api_docs.sh'),
|
|
])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
kibanaPipeline.sendMail()
|
|
}
|
|
}
|