* Move server code into NP folder * NP config is not yet used * Relative imports are somewhat broken * Move common folder into NP * Move cypress folder into NP * Move scripts folder into NP * Move misc. config into NP folder A few of these were moved into the cypress folder as they're cypress-specific. I tried to update all the relative paths but some are likely broken. I'm not going to know until other stuff is fixed, though. * Move value for siem index pattern into common/constants The other default values live in there, this is no different. * Update paths following file move If this was referencing the full project, it now references both paths (legacy for UI, and NP for server). * Fix typescript errors related to module resolution These are mostly updating imports to the common/ folder on the UI side (since things changed relative to those files). * Replace Legacy Config with NP Config * Updates plugin to use NP config * defines new config previously coming from savedObjects config * cleans up legacy types Conflicts: x-pack/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts x-pack/plugins/siem/server/lib/detection_engine/rules/types.ts x-pack/plugins/siem/server/plugin.ts x-pack/plugins/siem/server/routes/index.ts x-pack/plugins/siem/server/types.ts * Remove local SIEM tsconfig This was originally added to address an issue with tsserver, but that issue is no longer relevant. The presence of this file confuses typescript into thinking that siem is a separate TS project. * Update kibana.json to declare our dependencies These are not necessarily correct in terms of what's required/optional, but this is what's declared in our types. * Remove legacy plugin instantiation * Removes legacy instantiation of server plugin, which is now handled by NP * Loosens legacy config spec so we no longer have to duplicate config types * Update tests with NP config These were written against the old Hapi config function; now, we just have a POJO. * Update es_archiver helpers' paths I'm not quite sure if these are working yet, but they're no longer throwing errors. * Ignore restricted path on script This was cribbed from infra, who has made a similar change. * Ignore restricted path on temporary savedObject mappings import This will be changed subsequently when we switch to the NP form of savedObject type registration. * Add symlink to lockfile * Fix paths on circular deps script * Add separate config for Rule and Timeline saved objects We had previously used the savedObjects' config, but those are not currently exposed to us on New Platform. For now, we're going to split this into two sets of values for the SOs we deal with importing/exporting within the SIEM app, with the same defaults as savedObjects. * Fixing relative paths within cypress These are strings that wouldn't be caught by typescript.
57 lines
3.3 KiB
Groovy
57 lines
3.3 KiB
Groovy
#!/bin/groovy
|
|
|
|
library 'kibana-pipeline-library'
|
|
kibanaLibrary.load()
|
|
|
|
kibanaPipeline(timeoutMinutes: 135, checkPrChanges: true) {
|
|
githubPr.withDefaultPrComments {
|
|
catchError {
|
|
retryable.enable()
|
|
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-siemCypress': { processNumber ->
|
|
whenChanged(['x-pack/plugins/siem/', 'x-pack/legacy/plugins/siem/', 'x-pack/test/siem_cypress/']) {
|
|
kibanaPipeline.functionalTestProcess('xpack-siemCypress', './test/scripts/jenkins_siem_cypress.sh')(processNumber)
|
|
}
|
|
},
|
|
|
|
// 'xpack-visualRegression': kibanaPipeline.functionalTestProcess('xpack-visualRegression', './test/scripts/jenkins_xpack_visual_regression.sh'),
|
|
]),
|
|
])
|
|
}
|
|
}
|
|
|
|
retryable.printFlakyFailures()
|
|
kibanaPipeline.sendMail()
|
|
}
|