Skip to content

Commit

Permalink
Merge pull request #654 from uc-cdis/fix/data_upload_bucket_url
Browse files Browse the repository at this point in the history
fix bucketname logic
  • Loading branch information
haraprasadj authored Jul 16, 2021
2 parents 4b71faa + 64b4916 commit cbd5552
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions suites/portal/dataUploadTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ const uploadFile = async function (I, dataUpload, indexd, sheepdog, nodes, fileO
// additional scrutiny for file upload only when running inside Jenkins
if (inJenkins) {
const maxAttempts = 6;
const jenkinsNamespace = process.env.HOSTNAME.replace('.planx-pla.net', '');
const bucketName = `${jenkinsNamespace}-databucket-gen3`;

// const jenkinsNamespace = process.env.HOSTNAME.replace('.planx-pla.net', '');
// const bucketName = `${jenkinsNamespace}-databucket-gen3`;
const bucketName = bash.runCommand('gen3 secrets decode fence-config fence-config.yaml | yq -r .DATA_UPLOAD_BUCKET');
console.log(bucketName);
for (let i = 1; i <= maxAttempts; i += 1) {
try {
console.log(`waiting for file [${fileName}] with guid [${fileGuid}] to show up on ${bucketName}... - attempt ${i}`);
Expand Down

0 comments on commit cbd5552

Please sign in to comment.