2020-03-04 04:21:33 +01:00
|
|
|
#!/bin/groovy
|
|
|
|
|
|
|
|
library 'kibana-pipeline-library'
|
|
|
|
kibanaLibrary.load()
|
|
|
|
|
2021-03-03 02:17:53 +01:00
|
|
|
kibanaPipeline(timeoutMinutes: 210) {
|
2020-07-23 02:38:26 +02:00
|
|
|
githubCommitStatus.trackBuild(params.commit, 'kibana-ci-baseline') {
|
|
|
|
ciStats.trackBuild {
|
2021-03-03 02:17:53 +01:00
|
|
|
catchErrors {
|
|
|
|
slackNotifications.onFailure(
|
|
|
|
title: "*<${env.BUILD_URL}|[${params.branch}] Baseline Capture Failure>*",
|
|
|
|
message: "[${params.branch}/${params.commit}] Baseline Capture Failure",
|
|
|
|
) {
|
|
|
|
retryable.enable(2)
|
2021-02-12 19:58:46 +01:00
|
|
|
|
2021-03-03 02:17:53 +01:00
|
|
|
catchErrors {
|
|
|
|
workers.ci(
|
|
|
|
name: 'baseline-worker',
|
|
|
|
size: 'xl',
|
|
|
|
ramDisk: true,
|
|
|
|
runErrorReporter: false,
|
|
|
|
bootstrapped: false
|
|
|
|
) {
|
|
|
|
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') {
|
|
|
|
withEnv([
|
2021-04-19 20:47:13 +02:00
|
|
|
'BUILD_TS_REFS_DISABLE=false', // disabled in root config so we need to override that here
|
2021-03-03 02:17:53 +01:00
|
|
|
'BUILD_TS_REFS_CACHE_ENABLE=true',
|
|
|
|
'BUILD_TS_REFS_CACHE_CAPTURE=true',
|
2021-03-03 19:03:00 +01:00
|
|
|
'DISABLE_BOOTSTRAP_VALIDATION=true',
|
2021-03-03 02:17:53 +01:00
|
|
|
]) {
|
|
|
|
kibanaPipeline.doSetup()
|
|
|
|
}
|
2020-08-14 22:41:47 +02:00
|
|
|
}
|
2021-03-03 02:17:53 +01:00
|
|
|
|
|
|
|
kibanaPipeline.withCiTaskQueue([parallel: 2]) {
|
|
|
|
catchErrors {
|
|
|
|
tasks([
|
|
|
|
kibanaPipeline.functionalTestProcess('xpack-baseline', './test/scripts/jenkins_xpack_baseline.sh'),
|
2021-06-02 05:20:47 +02:00
|
|
|
kibanaPipeline.scriptTask('Check Public API Docs', 'test/scripts/checks/baseline_plugin_public_api_docs.sh'),
|
2021-03-03 02:17:53 +01:00
|
|
|
])
|
|
|
|
}
|
2020-08-14 22:41:47 +02:00
|
|
|
}
|
2021-03-03 02:17:53 +01:00
|
|
|
}
|
|
|
|
}
|
2020-08-14 22:41:47 +02:00
|
|
|
}
|
2020-07-23 02:38:26 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-03 02:17:53 +01:00
|
|
|
|
|
|
|
kibanaPipeline.sendMail()
|
2020-05-14 01:07:57 +02:00
|
|
|
}
|
2020-03-04 04:21:33 +01:00
|
|
|
}
|