2019-09-11 20:58:28 +02:00
|
|
|
#!/bin/groovy
|
|
|
|
|
2019-09-27 20:45:12 +02:00
|
|
|
library 'kibana-pipeline-library'
|
2019-10-25 18:57:46 +02:00
|
|
|
kibanaLibrary.load()
|
2019-09-27 20:45:12 +02:00
|
|
|
|
2020-06-23 19:32:03 +02:00
|
|
|
kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true) {
|
2020-06-13 01:37:38 +02:00
|
|
|
githubPr.withDefaultPrComments {
|
|
|
|
ciStats.trackBuild {
|
2020-04-27 22:24:52 +02:00
|
|
|
catchError {
|
|
|
|
retryable.enable()
|
2020-07-08 22:05:12 +02:00
|
|
|
parallel([
|
|
|
|
'kibana-intake-agent': workers.intake('kibana-intake', './test/scripts/jenkins_unit.sh'),
|
|
|
|
'x-pack-intake-agent': workers.intake('x-pack-intake', './test/scripts/jenkins_xpack.sh'),
|
|
|
|
'kibana-oss-agent': workers.functional('kibana-oss-tests', { kibanaPipeline.buildOss() }, [
|
|
|
|
'oss-firefoxSmoke': kibanaPipeline.functionalTestProcess('kibana-firefoxSmoke', './test/scripts/jenkins_firefox_smoke.sh'),
|
|
|
|
'oss-ciGroup1': kibanaPipeline.ossCiGroupProcess(1),
|
|
|
|
'oss-ciGroup2': kibanaPipeline.ossCiGroupProcess(2),
|
|
|
|
'oss-ciGroup3': kibanaPipeline.ossCiGroupProcess(3),
|
|
|
|
'oss-ciGroup4': kibanaPipeline.ossCiGroupProcess(4),
|
|
|
|
'oss-ciGroup5': kibanaPipeline.ossCiGroupProcess(5),
|
|
|
|
'oss-ciGroup6': kibanaPipeline.ossCiGroupProcess(6),
|
|
|
|
'oss-ciGroup7': kibanaPipeline.ossCiGroupProcess(7),
|
|
|
|
'oss-ciGroup8': kibanaPipeline.ossCiGroupProcess(8),
|
|
|
|
'oss-ciGroup9': kibanaPipeline.ossCiGroupProcess(9),
|
|
|
|
'oss-ciGroup10': kibanaPipeline.ossCiGroupProcess(10),
|
|
|
|
'oss-ciGroup11': kibanaPipeline.ossCiGroupProcess(11),
|
|
|
|
'oss-ciGroup12': kibanaPipeline.ossCiGroupProcess(12),
|
|
|
|
'oss-accessibility': kibanaPipeline.functionalTestProcess('kibana-accessibility', './test/scripts/jenkins_accessibility.sh'),
|
|
|
|
// 'oss-visualRegression': kibanaPipeline.functionalTestProcess('visualRegression', './test/scripts/jenkins_visual_regression.sh'),
|
|
|
|
]),
|
|
|
|
'kibana-xpack-agent': workers.functional('kibana-xpack-tests', { kibanaPipeline.buildXpack() }, [
|
|
|
|
'xpack-firefoxSmoke': kibanaPipeline.functionalTestProcess('xpack-firefoxSmoke', './test/scripts/jenkins_xpack_firefox_smoke.sh'),
|
|
|
|
'xpack-ciGroup1': kibanaPipeline.xpackCiGroupProcess(1),
|
|
|
|
'xpack-ciGroup2': kibanaPipeline.xpackCiGroupProcess(2),
|
|
|
|
'xpack-ciGroup3': kibanaPipeline.xpackCiGroupProcess(3),
|
|
|
|
'xpack-ciGroup4': kibanaPipeline.xpackCiGroupProcess(4),
|
|
|
|
'xpack-ciGroup5': kibanaPipeline.xpackCiGroupProcess(5),
|
|
|
|
'xpack-ciGroup6': kibanaPipeline.xpackCiGroupProcess(6),
|
|
|
|
'xpack-ciGroup7': kibanaPipeline.xpackCiGroupProcess(7),
|
|
|
|
'xpack-ciGroup8': kibanaPipeline.xpackCiGroupProcess(8),
|
|
|
|
'xpack-ciGroup9': kibanaPipeline.xpackCiGroupProcess(9),
|
|
|
|
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
|
|
|
|
'xpack-accessibility': kibanaPipeline.functionalTestProcess('xpack-accessibility', './test/scripts/jenkins_xpack_accessibility.sh'),
|
|
|
|
'xpack-savedObjectsFieldMetrics': kibanaPipeline.functionalTestProcess('xpack-savedObjectsFieldMetrics', './test/scripts/jenkins_xpack_saved_objects_field_metrics.sh'),
|
|
|
|
// 'xpack-pageLoadMetrics': kibanaPipeline.functionalTestProcess('xpack-pageLoadMetrics', './test/scripts/jenkins_xpack_page_load_metrics.sh'),
|
|
|
|
'xpack-securitySolutionCypress': { processNumber ->
|
|
|
|
whenChanged(['x-pack/plugins/security_solution/', 'x-pack/test/security_solution_cypress/']) {
|
|
|
|
kibanaPipeline.functionalTestProcess('xpack-securitySolutionCypress', './test/scripts/jenkins_security_solution_cypress.sh')(processNumber)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
// 'xpack-visualRegression': kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh'),
|
|
|
|
]),
|
|
|
|
])
|
2020-04-27 22:24:52 +02:00
|
|
|
}
|
2019-09-11 20:58:28 +02:00
|
|
|
}
|
2020-06-13 01:37:38 +02:00
|
|
|
}
|
2020-03-02 21:04:27 +01:00
|
|
|
|
2020-06-13 01:37:38 +02:00
|
|
|
if (params.NOTIFY_ON_FAILURE) {
|
|
|
|
slackNotifications.onFailure()
|
|
|
|
kibanaPipeline.sendMail()
|
2020-04-27 22:24:52 +02:00
|
|
|
}
|
2019-11-07 16:07:40 +01:00
|
|
|
}
|