Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7cdcfe5b
Commit
7cdcfe5b
authored
Apr 14, 2022
by
Andrejs Cunskis
Committed by
Rémy Coutable
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pipeline-common for allure report and knapsack report jobs
parent
da95afc6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
51 deletions
+23
-51
.gitlab/ci/review-apps/qa.gitlab-ci.yml
.gitlab/ci/review-apps/qa.gitlab-ci.yml
+22
-40
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+1
-11
No files found.
.gitlab/ci/review-apps/qa.gitlab-ci.yml
View file @
7cdcfe5b
include
:
-
project
:
gitlab-org/quality/pipeline-common
ref
:
0.3.6
file
:
-
/ci/allure-report.yml
-
/ci/knapsack-report.yml
.review-qa-base
:
extends
:
-
.use-docker-in-docker
...
...
@@ -43,27 +50,13 @@
when
:
always
.allure-report-base
:
image
:
name
:
${GITLAB_DEPENDENCY_PROXY}andrcuns/allure-report-publisher:0.4.2
entrypoint
:
[
"
"
]
extends
:
.generate-allure-report-base
stage
:
post-qa
variables
:
GIT_STRATEGY
:
none
STORAGE_CREDENTIALS
:
$QA_ALLURE_REPORT_GCS_CREDENTIALS
GITLAB_AUTH_TOKEN
:
$GITLAB_QA_MR_ALLURE_REPORT_TOKEN
ALLURE_PROJECT_PATH
:
$CI_PROJECT_PATH
ALLURE_MERGE_REQUEST_IID
:
$CI_MERGE_REQUEST_IID
allow_failure
:
true
script
:
-
|
allure-report-publisher upload gcs \
--results-glob="qa/tmp/allure-results/*" \
--bucket="gitlab-qa-allure-reports" \
--prefix="$ALLURE_REPORT_PATH_PREFIX/$CI_COMMIT_REF_SLUG" \
--update-pr="comment" \
--copy-latest \
--ignore-missing-results \
--color
ALLURE_RESULTS_GLOB
:
qa/tmp/allure-results/*
review-qa-smoke
:
extends
:
...
...
@@ -121,23 +114,19 @@ review-performance:
performance
:
performance.json
expire_in
:
31d
allure-report-qa-smoke
:
extends
:
-
.allure-report-base
-
.review:rules:review-qa-smoke-report
needs
:
[
"
review-qa-smoke"
]
variables
:
ALLURE_REPORT_PATH_PREFIX
:
gitlab-review-smoke
ALLURE_JOB_NAME
:
review-qa-smoke
allure-report-qa-reliable
:
# Generate single report for both smoke and reliable test jobs
# Both job types are essentially the same:
# * always executed
# * always blocking
allure-report-qa-blocking
:
extends
:
-
.allure-report-base
-
.review:rules:review-qa-reliable-report
needs
:
[
"
review-qa-reliable"
]
-
.review:rules:review-qa-blocking-report
needs
:
-
review-qa-smoke
-
review-qa-reliable
variables
:
ALLURE_REPORT_PATH_PREFIX
:
gitlab-review-reliable
ALLURE_JOB_NAME
:
review-qa-reliable
ALLURE_JOB_NAME
:
review-qa-blocking
allure-report-qa-all
:
extends
:
...
...
@@ -145,18 +134,11 @@ allure-report-qa-all:
-
.review:rules:review-qa-all-report
needs
:
[
"
review-qa-all"
]
variables
:
ALLURE_REPORT_PATH_PREFIX
:
gitlab-review-all
ALLURE_JOB_NAME
:
review-qa-all
knapsack-report
:
extends
:
-
.review:rules:knapsack-report
image
:
name
:
${QA_IMAGE}
entrypoint
:
[
"
"
]
-
.generate-knapsack-report-base
stage
:
post-qa
allow_failure
:
true
before_script
:
-
cd qa
script
:
-
bundle exec rake 'knapsack:upload[tmp/knapsack/*/*.json]'
variables
:
QA_KNAPSACK_REPORT_FILE_PATTERN
:
$CI_PROJECT_DIR/tmp/knapsack/*/*.json
.gitlab/ci/rules.gitlab-ci.yml
View file @
7cdcfe5b
...
...
@@ -1583,17 +1583,12 @@
#
# See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76756
# Since `review-qa-smoke` isn't allowed to fail, we need to use `when: always` for `review-qa-smoke-report`.
.review:rules:review-qa-smoke-report:
rules
:
-
when
:
always
.review:rules:review-qa-reliable:
rules
:
-
when
:
on_success
# Since `review-qa-reliable` isn't allowed to fail, we need to use `when: always`for `review-qa-reliable-report`.
.review:rules:review-qa-
reliable
-report:
.review:rules:review-qa-
blocking
-report:
rules
:
-
when
:
always
...
...
@@ -1613,11 +1608,6 @@
-
when
:
on_success
-
when
:
on_failure
.review:rules:knapsack-report:
rules
:
-
if
:
'
$KNAPSACK_GENERATE_REPORT
==
"true"'
when
:
always
.review:rules:review-cleanup:
rules
:
-
<<
:
*if-not-ee
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment