77abbf257d
* replace path in json files * upload combined reports to artifacts for debug purpose
33 lines
1.1 KiB
Groovy
33 lines
1.1 KiB
Groovy
#!/bin/groovy
|
|
|
|
library 'kibana-pipeline-library'
|
|
kibanaLibrary.load() // load from the Jenkins instance
|
|
|
|
kibanaPipeline(timeoutMinutes: 240) {
|
|
catchErrors {
|
|
def timestamp = new Date(currentBuild.startTimeInMillis).format("yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone("UTC"))
|
|
withEnv([
|
|
"TIME_STAMP=${timestamp}",
|
|
'CODE_COVERAGE=1', // Enables coverage. Needed for multiple ci scripts, such as remote.ts, test/scripts/*.sh, schema.js, etc.
|
|
]) {
|
|
workers.base(name: 'coverage-worker', size: 'l', ramDisk: false, bootstrapped: false) {
|
|
kibanaCoverage.runTests()
|
|
handleIngestion(TIME_STAMP)
|
|
}
|
|
}
|
|
kibanaPipeline.sendMail()
|
|
}
|
|
}
|
|
|
|
def handleIngestion(timestamp) {
|
|
kibanaPipeline.downloadCoverageArtifacts()
|
|
kibanaCoverage.prokLinks("### Process HTML Links")
|
|
kibanaCoverage.collectVcsInfo("### Collect VCS Info")
|
|
kibanaCoverage.generateReports("### Merge coverage reports")
|
|
kibanaCoverage.uploadCombinedReports()
|
|
kibanaCoverage.ingest(timestamp, '### Injest && Upload')
|
|
kibanaCoverage.uploadCoverageStaticSite(timestamp)
|
|
}
|
|
|
|
|