diff --git a/.buildkite/scripts/steps/es_snapshots/create_manifest.js b/.buildkite/scripts/steps/es_snapshots/create_manifest.js index 07393fb1be3f4..3255a0b078b47 100644 --- a/.buildkite/scripts/steps/es_snapshots/create_manifest.js +++ b/.buildkite/scripts/steps/es_snapshots/create_manifest.js @@ -70,6 +70,7 @@ const { BASE_BUCKET_DAILY } = require('./bucket_config.js'); archives: manifestEntries, }; + const projectRoot = process.cwd(); const manifestJSON = JSON.stringify(manifest, null, 2); fs.writeFileSync(`${destination}/manifest.json`, manifestJSON); @@ -80,7 +81,7 @@ const { BASE_BUCKET_DAILY } = require('./bucket_config.js'); set -euo pipefail echo '--- Upload files to GCS' - .buildkite/scripts/common/activate_service_account.sh ${BASE_BUCKET_DAILY} + ${projectRoot}/.buildkite/scripts/common/activate_service_account.sh ${BASE_BUCKET_DAILY} cd "${destination}" gsutil -m cp -r *.* gs://${BASE_BUCKET_DAILY}/${DESTINATION} cp manifest.json manifest-latest.json