allure-report-publisher 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b226cb0e3d7651a128ea6c854dcfd756eb83aa2074b6c9b124c4ed579eeac7df
|
4
|
+
data.tar.gz: 7490ef926cfa646e0c6da527b61a9971e07e877c791b040233939972d67b43b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b6e27a73a11d3ad36e778869d5b5c018c92ec39a36173c91c747be47eaeabf7ccde44c058395d8de3ad0d610f2d26fd769c38421fd6850bc45881859ba98bf0
|
7
|
+
data.tar.gz: cc0f9211ce10d563f3e82baa88da8ce2af5c91335ec6ff8e94267c4fa7c303764a9fe8abde1a1a31996e7e0ac53685da4c8290d3c12a6ee402f29d19944edef9
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ Examples:
|
|
68
68
|
|
69
69
|
All named options can be configured via environment variables. Environment variables are prefixed with `ALLURE_` and uppercased.
|
70
70
|
|
71
|
-
Example: `--results-glob` can be configured via `
|
71
|
+
Example: `--results-glob` can be configured via `ALLURE_RESULTS_GLOB`
|
72
72
|
|
73
73
|
# Storage providers
|
74
74
|
|
@@ -12,6 +12,7 @@ module Publisher
|
|
12
12
|
|
13
13
|
def_delegators :"Publisher::Providers::Info::Gitlab.instance",
|
14
14
|
:allure_project,
|
15
|
+
:mr_iid,
|
15
16
|
:allure_mr_iid,
|
16
17
|
:server_url,
|
17
18
|
:build_name
|
@@ -68,13 +69,6 @@ module Publisher
|
|
68
69
|
@project ||= allure_project || env("CI_MERGE_REQUEST_PROJECT_PATH") || env("CI_PROJECT_PATH")
|
69
70
|
end
|
70
71
|
|
71
|
-
# Merge request iid
|
72
|
-
#
|
73
|
-
# @return [Integer]
|
74
|
-
def mr_iid
|
75
|
-
@mr_iid ||= allure_mr_iid || env("CI_MERGE_REQUEST_IID")
|
76
|
-
end
|
77
|
-
|
78
72
|
# Commit sha url
|
79
73
|
#
|
80
74
|
# @return [String]
|
@@ -27,7 +27,7 @@ module Publisher
|
|
27
27
|
#
|
28
28
|
# @return [Boolean]
|
29
29
|
def pr?
|
30
|
-
!!(allure_project && allure_mr_iid) ||
|
30
|
+
!!((allure_project && allure_mr_iid) || mr_iid)
|
31
31
|
end
|
32
32
|
|
33
33
|
# Get ci run ID without creating instance of ci provider
|
@@ -58,6 +58,13 @@ module Publisher
|
|
58
58
|
@allure_project ||= env("ALLURE_PROJECT_PATH")
|
59
59
|
end
|
60
60
|
|
61
|
+
# Merge request iid
|
62
|
+
#
|
63
|
+
# @return [Integer]
|
64
|
+
def mr_iid
|
65
|
+
@mr_iid ||= allure_mr_iid || env("CI_MERGE_REQUEST_IID")
|
66
|
+
end
|
67
|
+
|
61
68
|
# Custom mr iid name
|
62
69
|
#
|
63
70
|
# @return [String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allure-report-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrejs Cunskis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|