@allurereport/ci 3.14.3 → 3.16.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/detectors/azure.d.ts +1 -0
- package/dist/detectors/azure.js +13 -0
- package/package.json +2 -2
|
@@ -3,4 +3,5 @@ export declare const getRootURL: () => string;
|
|
|
3
3
|
export declare const getBuildID: () => string;
|
|
4
4
|
export declare const getDefinitionID: () => string;
|
|
5
5
|
export declare const getProjectID: () => string;
|
|
6
|
+
export declare const isClassicRelease: () => boolean;
|
|
6
7
|
export declare const azure: CiDescriptor;
|
package/dist/detectors/azure.js
CHANGED
|
@@ -8,6 +8,7 @@ export const getRootURL = () => getEnv("SYSTEM_COLLECTIONURI");
|
|
|
8
8
|
export const getBuildID = () => getEnv("BUILD_BUILDID");
|
|
9
9
|
export const getDefinitionID = () => getEnv("SYSTEM_DEFINITIONID");
|
|
10
10
|
export const getProjectID = () => getEnv("SYSTEM_TEAMPROJECTID");
|
|
11
|
+
export const isClassicRelease = () => !!getEnv("RELEASE_RELEASEID");
|
|
11
12
|
const mapAzureRepositoryProvider = (provider) => {
|
|
12
13
|
switch (provider) {
|
|
13
14
|
case "GitHub":
|
|
@@ -63,15 +64,27 @@ export const azure = {
|
|
|
63
64
|
return `${getRootURL()}/${getProjectID()}/_build?definitionId=${getDefinitionID()}`;
|
|
64
65
|
},
|
|
65
66
|
get jobName() {
|
|
67
|
+
if (isClassicRelease()) {
|
|
68
|
+
return getEnv("RELEASE_DEFINITIONNAME");
|
|
69
|
+
}
|
|
66
70
|
return getEnv("BUILD_DEFINITIONNAME");
|
|
67
71
|
},
|
|
68
72
|
get jobRunUid() {
|
|
73
|
+
if (isClassicRelease()) {
|
|
74
|
+
return getEnv("RELEASE_RELEASEID");
|
|
75
|
+
}
|
|
69
76
|
return getBuildID();
|
|
70
77
|
},
|
|
71
78
|
get jobRunUrl() {
|
|
79
|
+
if (isClassicRelease()) {
|
|
80
|
+
return getEnv("RELEASE_RELEASEWEBURL");
|
|
81
|
+
}
|
|
72
82
|
return `${getRootURL()}/${getProjectID()}/_build/results?buildId=${getBuildID()}`;
|
|
73
83
|
},
|
|
74
84
|
get jobRunName() {
|
|
85
|
+
if (isClassicRelease()) {
|
|
86
|
+
return getEnv("RELEASE_RELEASENAME");
|
|
87
|
+
}
|
|
75
88
|
return getEnv("BUILD_BUILDNUMBER");
|
|
76
89
|
},
|
|
77
90
|
get jobRunBranch() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/ci",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
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.
|
|
33
|
+
"@allurereport/core-api": "3.16.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20",
|