Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-playwright-web-spd
Commits
b63cb018
Commit
b63cb018
authored
Sep 15, 2026
by
liguangyu06
Browse files
Skip the Allure Pipeline step so report email still sends without the plugin.
parent
41e01135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Jenkinsfile
View file @
b63cb018
...
...
@@ -205,26 +205,17 @@ pipeline {
echo
"跳过 HTML 报告:${err}"
}
try
{
if
(
fileExists
(
'reports/latest/allure-results'
))
{
try
{
allure
includeProperties:
false
,
jdk:
''
,
results:
[[
path:
'reports/latest/allure-results'
]]
}
catch
(
err
)
{
echo
"Allure 插件不可用,已保留 reports/latest/allure-report:${err}"
if
(
fileExists
(
'reports/latest/allure-report/index.html'
))
{
try
{
publishHTML
([
allowMissing:
true
,
alwaysLinkToLastBuild:
true
,
keepAll:
true
,
reportDir:
'reports/latest/allure-report'
,
reportFiles:
'index.html'
,
reportName:
'Allure Report'
])
}
catch
(
ignored
)
{
echo
"跳过 Allure HTML:${ignored}"
}
}
}
if
(
fileExists
(
'reports/latest/allure-report/index.html'
))
{
publishHTML
([
allowMissing:
true
,
alwaysLinkToLastBuild:
true
,
keepAll:
true
,
reportDir:
'reports/latest/allure-report'
,
reportFiles:
'index.html'
,
reportName:
'Allure Report'
])
}
else
{
echo
'未生成 Allure HTML(节点未装 Java/Allure 插件),以 Playwright 报告为准。'
}
}
catch
(
err
)
{
echo
"跳过 Allure:${err}"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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