mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[7.17] fix(NA): cwd path for child script on create manifest (#180525)
This PR completely backports what was done at https://github.com/elastic/kibana/pull/176781 but for 7.17
This commit is contained in:
parent
eae3957884
commit
f68a5d642d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue