mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(cherry picked from commit d513ffc0e6
)
Co-authored-by: Brian Seeders <brian.seeders@elastic.co>
This commit is contained in:
parent
8064218810
commit
5ab7ece8fd
2 changed files with 17 additions and 0 deletions
|
@ -12,3 +12,11 @@ export CI_STATS_TOKEN="$(retry 5 5 vault read -field=api_token secret/kibana-iss
|
|||
export CI_STATS_HOST="$(retry 5 5 vault read -field=api_host secret/kibana-issues/dev/kibana_ci_stats)"
|
||||
|
||||
node "$(dirname "${0}")/ci_stats_start.js"
|
||||
|
||||
# We resolve the latest manifest URL at the beginning of the build to ensure that all steps in the build will use the same manifest
|
||||
# Otherwise, the manifest could change if a step is running around the time that a new one is promoted
|
||||
if [[ ! "${ES_SNAPSHOT_MANIFEST:-}" ]]; then
|
||||
BUCKET=$(curl -s "https://storage.googleapis.com/kibana-ci-es-snapshots-daily/$(cat package.json | jq -r .version)/manifest-latest-verified.json" | jq -r .bucket)
|
||||
ES_SNAPSHOT_MANIFEST_DEFAULT="https://storage.googleapis.com/$BUCKET/manifest.json"
|
||||
buildkite-agent meta-data set ES_SNAPSHOT_MANIFEST_DEFAULT "$ES_SNAPSHOT_MANIFEST_DEFAULT"
|
||||
fi
|
||||
|
|
|
@ -65,6 +65,15 @@ EOF
|
|||
fi
|
||||
}
|
||||
|
||||
# If a custom manifest isn't specified, then use the default one that we resolve earlier in the build
|
||||
{
|
||||
if [[ ! "${ES_SNAPSHOT_MANIFEST:-}" ]]; then
|
||||
ES_SNAPSHOT_MANIFEST=${ES_SNAPSHOT_MANIFEST:-$(buildkite-agent meta-data get ES_SNAPSHOT_MANIFEST_DEFAULT --default '')}
|
||||
export ES_SNAPSHOT_MANIFEST
|
||||
echo "Using default ES Snapshot Manifest: $ES_SNAPSHOT_MANIFEST"
|
||||
fi
|
||||
}
|
||||
|
||||
# Setup CI Stats
|
||||
{
|
||||
CI_STATS_BUILD_ID="$(buildkite-agent meta-data get ci_stats_build_id --default '')"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue