@nordicsemiconductor/firmware-ci-runner-azure 1.6.32 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/run.d.ts +1 -0
- package/dist/run.js +2 -3
- package/package.json +1 -1
package/dist/run.d.ts
CHANGED
package/dist/run.js
CHANGED
|
@@ -37,8 +37,7 @@ const run = ({ port, target, }) => {
|
|
|
37
37
|
const creds = new identity_1.ClientSecretCredential(tenantId, clientId, clientSecret);
|
|
38
38
|
const iotHubRegistry = azure_iothub_1.Registry.fromTokenCredential(`${testEnv.resourceGroup}IotHub.azure-devices.net`, creds);
|
|
39
39
|
const fotaStorageContainer = 'upgrades';
|
|
40
|
-
const
|
|
41
|
-
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${fotaStorageAccountName}.blob.core.windows.net`, creds);
|
|
40
|
+
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${testEnv.storageAccountName}.blob.core.windows.net`, creds);
|
|
42
41
|
const containerClient = blobServiceClient.getContainerClient(fotaStorageContainer);
|
|
43
42
|
const fotaFileName = `${deviceId.substr(0, 8)}.bin`;
|
|
44
43
|
if (powerCycle !== undefined) {
|
|
@@ -185,7 +184,7 @@ const run = ({ port, target, }) => {
|
|
|
185
184
|
blobCacheControl: 'public, max-age=31536000',
|
|
186
185
|
},
|
|
187
186
|
});
|
|
188
|
-
const url = new url_1.URL(`https://${
|
|
187
|
+
const url = new url_1.URL(`https://${testEnv.storageAccountName}.blob.core.windows.net/${fotaStorageContainer}/${fotaFileName}`);
|
|
189
188
|
const res = await iotHubRegistry
|
|
190
189
|
.createQuery(`SELECT * FROM devices WHERE deviceId='${deviceId}'`)
|
|
191
190
|
.nextAsTwin();
|
package/package.json
CHANGED