52 lines
1.7 KiB
Groovy
52 lines
1.7 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/kibana-issues/dev/ci-artifacts-key', 'value') {
|
|
withEnv([
|
|
'BUILD_TS_REFS_CACHE_ENABLE=true',
|
|
'BUILD_TS_REFS_CACHE_CAPTURE=true',
|
|
'DISABLE_BOOTSTRAP_VALIDATION=true',
|
|
]) {
|
|
kibanaPipeline.doSetup()
|
|
}
|
|
}
|
|
|
|
kibanaPipeline.withCiTaskQueue([parallel: 2]) {
|
|
catchErrors {
|
|
tasks([
|
|
kibanaPipeline.functionalTestProcess('oss-baseline', './test/scripts/jenkins_baseline.sh'),
|
|
kibanaPipeline.functionalTestProcess('xpack-baseline', './test/scripts/jenkins_xpack_baseline.sh'),
|
|
kibanaPipeline.scriptTask('Check Public API Docs', 'test/scripts/checks/plugin_public_api_docs.sh'),
|
|
])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
kibanaPipeline.sendMail()
|
|
}
|
|
}
|