Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
李新华(Cherry Li)
autotest_wise
Commits
643733c3
Commit
643733c3
authored
2 years ago
by
裴剑(Jian Pei)
Browse files
Options
Download
Email Patches
Plain Diff
improve Jenkinsfile
parent
57e349ec
main
1 merge request
!1
ADC Model Training Data Rule Configuration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+22
-1
Jenkinsfile
with
22 additions
and
1 deletion
+22
-1
Jenkinsfile
+
22
-
1
View file @
643733c3
...
...
@@ -19,10 +19,31 @@ pipeline {
targetLocation:
'settings.xml'
,
variable:
'MyGlobalSettings'
)])
{
script
{
sh
"mvn clean package -P${profiles}"
try
{
sh
"mvn -s $MyGlobalSettings clean package -P$profiles"
}
catch
(
Exception
e
){
currentBuild
.
result
=
"FAILURE"
}
stash
includes:
'target/surefire-reports/*.xml'
,
name:
'TestResult'
}
}
}
}
stage
(
'Record Test Result'
)
{
steps
{
script
{
sh
'rm -rf target/surefire-reports'
unstash
'TestResult'
junit
testResults:
'target/surefire-reports/*.xml'
allure
([
includeProperties:
false
,
jdk:
''
,
properties:
[],
reportBuildPolicy:
'ALWAYS'
,
results:
[[
path:
'target/surefire-reports'
]]
])
}
}
}
}
}
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets