2021-05-27 20:37:43 +02:00
|
|
|
#!/bin/groovy
|
|
|
|
library 'kibana-pipeline-library'
|
|
|
|
kibanaLibrary.load()
|
2021-07-07 20:15:33 +02:00
|
|
|
kibanaPipeline(timeoutMinutes: 120) {
|
2021-05-27 20:37:43 +02:00
|
|
|
slackNotifications.onFailure {
|
|
|
|
ciStats.trackBuild {
|
|
|
|
workers.ci(ramDisk: false, name: "package-build", size: 'l', runErrorReporter: false) {
|
|
|
|
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') {
|
|
|
|
kibanaPipeline.bash("test/scripts/jenkins_xpack_package_build.sh", "Package builds")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
def packageTypes = ['deb', 'docker', 'rpm']
|
|
|
|
def workers = [:]
|
|
|
|
packageTypes.each { type ->
|
|
|
|
workers["package-${type}"] = {
|
|
|
|
testPackage(type)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
parallel(workers)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
def testPackage(packageType) {
|
|
|
|
workers.ci(ramDisk: false, name: "package-${packageType}", size: 's', runErrorReporter: false) {
|
|
|
|
withGcpServiceAccount.fromVaultSecret('secret/kibana-issues/dev/ci-artifacts-key', 'value') {
|
|
|
|
kibanaPipeline.bash("test/scripts/jenkins_xpack_package_${packageType}.sh", "Execute package testing for ${packageType}")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|