@allurereport/ci 3.14.0 → 3.14.2

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.
@@ -1,7 +1,10 @@
1
1
  import { spawnSync } from "node:child_process";
2
+ import { randomUUID } from "node:crypto";
2
3
  import { basename } from "node:path";
3
4
  import { CiType } from "@allurereport/core-api";
4
5
  import { resolveRepositoryFromGitUrl } from "../helpers/gitProvider.js";
6
+ const LOCAL_JOB_UID = "local";
7
+ const LOCAL_JOB_RUN_UID = randomUUID();
5
8
  const readGitRemoteUrl = () => {
6
9
  const output = spawnSync("git", ["remote", "get-url", "origin"]);
7
10
  if (output.error) {
@@ -26,7 +29,7 @@ export const local = {
26
29
  return basename(output.stdout.toString().trim());
27
30
  },
28
31
  get jobUid() {
29
- return "";
32
+ return LOCAL_JOB_UID;
30
33
  },
31
34
  get jobUrl() {
32
35
  return "";
@@ -35,7 +38,7 @@ export const local = {
35
38
  return "";
36
39
  },
37
40
  get jobRunUid() {
38
- return "";
41
+ return LOCAL_JOB_RUN_UID;
39
42
  },
40
43
  get jobRunUrl() {
41
44
  return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/ci",
3
- "version": "3.14.0",
3
+ "version": "3.14.2",
4
4
  "description": "Utilities set to get useful report data from different CI",
5
5
  "keywords": [
6
6
  "allure",
@@ -30,7 +30,7 @@
30
30
  "lint:fix": "oxlint --import-plugin --fix src test features stories"
31
31
  },
32
32
  "dependencies": {
33
- "@allurereport/core-api": "3.14.0"
33
+ "@allurereport/core-api": "3.14.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20",