15 lines
377 B
JavaScript
15 lines
377 B
JavaScript
const { CiStats } = require('kibana-buildkite-library');
|
|
|
|
(async () => {
|
|
try {
|
|
await CiStats.onComplete();
|
|
} catch (ex) {
|
|
console.error('CI Stats Error', ex.message);
|
|
if (ex.response) {
|
|
console.error('HTTP Error Response Status', ex.response.status);
|
|
console.error('HTTP Error Response Body', ex.response.data);
|
|
}
|
|
process.exit(1);
|
|
}
|
|
})();
|