@nordicsemiconductor/firmware-ci-runner-azure 2.0.124 → 2.0.127
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.js +4 -4
- package/package.json +3 -3
package/dist/run.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.run = void 0;
|
|
4
4
|
const identity_1 = require("@azure/identity");
|
|
5
|
+
const storage_blob_1 = require("@azure/storage-blob");
|
|
5
6
|
const firmware_ci_device_helpers_1 = require("@nordicsemiconductor/firmware-ci-device-helpers");
|
|
6
7
|
const azure_iothub_1 = require("azure-iothub");
|
|
7
8
|
const fs_1 = require("fs");
|
|
8
9
|
const path = require("path");
|
|
9
|
-
const exec_1 = require("./exec");
|
|
10
10
|
const semver = require("semver");
|
|
11
|
-
const storage_blob_1 = require("@azure/storage-blob");
|
|
12
11
|
const url_1 = require("url");
|
|
13
12
|
const uuid_1 = require("uuid");
|
|
13
|
+
const exec_1 = require("./exec");
|
|
14
14
|
const run = ({ port, target, }) => {
|
|
15
15
|
const { debug, progress, warn, error, success } = (0, firmware_ci_device_helpers_1.log)();
|
|
16
16
|
debug('port', port);
|
|
@@ -40,7 +40,7 @@ const run = ({ port, target, }) => {
|
|
|
40
40
|
const fotaStorageContainer = 'upgrades';
|
|
41
41
|
const blobServiceClient = new storage_blob_1.BlobServiceClient(`https://${testEnv.storageAccountName}.blob.core.windows.net`, creds);
|
|
42
42
|
const containerClient = blobServiceClient.getContainerClient(fotaStorageContainer);
|
|
43
|
-
const fotaFileName = `${deviceId.
|
|
43
|
+
const fotaFileName = `${deviceId.slice(0, 8)}.bin`;
|
|
44
44
|
if (powerCycle !== undefined) {
|
|
45
45
|
progress(port, `Power cycling device`);
|
|
46
46
|
progress(port, `Turning off ...`);
|
|
@@ -197,7 +197,7 @@ const run = ({ port, target, }) => {
|
|
|
197
197
|
fwLocation: {
|
|
198
198
|
protocol: url.protocol,
|
|
199
199
|
host: url.hostname,
|
|
200
|
-
path: url.pathname.
|
|
200
|
+
path: url.pathname.slice(1),
|
|
201
201
|
},
|
|
202
202
|
fwFragmentSize: 1800,
|
|
203
203
|
jobId: (0, uuid_1.v4)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nordicsemiconductor/firmware-ci-runner-azure",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.127",
|
|
4
4
|
"description": "Runs firmware on a real device connected to Azure IoT hub.",
|
|
5
5
|
"main": "./dist/export.js",
|
|
6
6
|
"bin": "./cli/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@azure/identity": "2.0.5",
|
|
33
33
|
"@azure/storage-blob": "12.10.0",
|
|
34
|
-
"@nordicsemiconductor/firmware-ci-device-helpers": "13.0.
|
|
34
|
+
"@nordicsemiconductor/firmware-ci-device-helpers": "13.0.177",
|
|
35
35
|
"@serialport/parser-readline": "10.3.0",
|
|
36
36
|
"azure-iothub": "1.15.0",
|
|
37
37
|
"semver": "7.3.7",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"uuid": "8.3.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@nordicsemiconductor/asset-tracker-cloud-code-style": "11.0.
|
|
42
|
+
"@nordicsemiconductor/asset-tracker-cloud-code-style": "11.0.94",
|
|
43
43
|
"@swc/jest": "0.2.21",
|
|
44
44
|
"@types/jest": "28.1.3",
|
|
45
45
|
"@types/node": "16.11.41",
|