try
parent
a970a0d3cc
commit
5d23021933
|
@ -139,6 +139,7 @@ steps:
|
|||
Write-Host "##vso[task.setvariable variable=AZURE_TENANT_ID]$env:tenantId"
|
||||
Write-Host "##vso[task.setvariable variable=AZURE_CLIENT_ID]$env:servicePrincipalId"
|
||||
Write-Host "##vso[task.setvariable variable=AZURE_CLIENT_SECRET;issecret=true]$env:servicePrincipalKey"
|
||||
Write-Host "##vso[task.setvariable variable=AZURE_CLIENT_SECRET2;issecret=true]$env:idToken"
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
|
|
|
@ -14,7 +14,7 @@ const identity_1 = require("@azure/identity");
|
|||
const azure = require('gulp-azure-storage');
|
||||
const root = path.dirname(path.dirname(__dirname));
|
||||
const commit = process.env['BUILD_SOURCEVERSION'];
|
||||
const credential = new identity_1.ClientSecretCredential(process.env['AZURE_TENANT_ID'], process.env['AZURE_CLIENT_ID'], process.env['AZURE_CLIENT_SECRET']);
|
||||
const credential = new identity_1.ClientSecretCredential(process.env['AZURE_TENANT_ID'], process.env['AZURE_CLIENT_ID'], process.env['AZURE_CLIENT_SECRET'] || process.env['AZURE_CLIENT_SECRET2']);
|
||||
// optionally allow to pass in explicit base/maps to upload
|
||||
const [, , base, maps] = process.argv;
|
||||
function src(base, maps = `${base}/**/*.map`) {
|
||||
|
|
|
@ -15,7 +15,7 @@ const azure = require('gulp-azure-storage');
|
|||
|
||||
const root = path.dirname(path.dirname(__dirname));
|
||||
const commit = process.env['BUILD_SOURCEVERSION'];
|
||||
const credential = new ClientSecretCredential(process.env['AZURE_TENANT_ID']!, process.env['AZURE_CLIENT_ID']!, process.env['AZURE_CLIENT_SECRET']!);
|
||||
const credential = new ClientSecretCredential(process.env['AZURE_TENANT_ID']!, process.env['AZURE_CLIENT_ID']!, process.env['AZURE_CLIENT_SECRET']! || process.env['AZURE_CLIENT_SECRET2']!);
|
||||
|
||||
// optionally allow to pass in explicit base/maps to upload
|
||||
const [, , base, maps] = process.argv;
|
||||
|
|
Loading…
Reference in New Issue