mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[build] Improve error message for dependencies in cloud docker image build (#124890)
* [build] Improve error message for dependencies in cloud docker image build * cleanup
This commit is contained in:
parent
5538967ba4
commit
be1be06522
1 changed files with 11 additions and 4 deletions
|
@ -36,12 +36,19 @@ export const DownloadCloudDependencies: Task = {
|
|||
|
||||
let buildId = '';
|
||||
if (!config.isRelease) {
|
||||
const manifest = await Axios.get(
|
||||
`https://artifacts-api.elastic.co/v1/versions/${config.getBuildVersion()}/builds/latest`
|
||||
);
|
||||
buildId = manifest.data.build.build_id;
|
||||
const manifestUrl = `https://artifacts-api.elastic.co/v1/versions/${config.getBuildVersion()}/builds/latest`;
|
||||
try {
|
||||
const manifest = await Axios.get(manifestUrl);
|
||||
buildId = manifest.data.build.build_id;
|
||||
} catch (e) {
|
||||
log.error(
|
||||
`Unable to find Elastic artifacts for ${config.getBuildVersion()} at ${manifestUrl}.`
|
||||
);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
await del([config.resolveFromRepo('.beats')]);
|
||||
|
||||
await downloadBeat('metricbeat', buildId);
|
||||
await downloadBeat('filebeat', buildId);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue