Automatically create resultbaseurl for GCS if it doesn't exist. (#3259)

This commit is contained in:
Peter Hedenskog 2021-01-18 08:21:52 +01:00 committed by GitHub
parent dfced15a4c
commit e9d28b53ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -1573,6 +1573,19 @@ module.exports.parseCommandLine = function parseCommandLine() {
);
}
if (
argv.gcs &&
argv.gcs.bucketname &&
!argv.resultBaseUrl &&
!argv.resultBaseURL
) {
set(
argv,
'resultBaseURL',
'https://storage.googleapis.com/' + argv.gcs.bucketname
);
}
let urlsMetaData = cliUtil.getAliases(argv._, argv.urlAlias, argv.groupAlias);
// Copy the alias so it is also used by Browsertime
if (argv.urlAlias) {