Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andrew Lyons
pipeline
Commits
1f573508
Commit
1f573508
authored
May 18, 2020
by
Eloy Lafuente
Browse files
Only analyse rerun junit files with behat tests
parent
5a3c8e64
Changes
1
Hide whitespace changes
Inline
Side-by-side
vars/runTask.groovy
View file @
1f573508
...
...
@@ -84,10 +84,11 @@ def call(org.moodle.ci.Task task) {
// Process the jUnit test results.
// By default only process last-rerun junit files. Those are the final, consistent failures.
script
{
def
jFiles
=
"${env.BUILD_ID}/*rerun${task.numReruns}.junit/*.xml"
if
(
task
.
numReruns
==
0
)
{
// Without reruns, let's process the main junit logs.
jFiles
=
"${env.BUILD_ID}/*.junit/*.xml"
// By default, process all the junit files.
def
jFiles
=
"${env.BUILD_ID}/*.junit/*.xml"
if
(
task
.
task
==
"behat"
&&
task
.
numReruns
>
0
)
{
// For behat tasks with reruns, let's process last rerun junit logs only.
jFiles
=
"${env.BUILD_ID}/*rerun${task.numReruns}.junit/*.xml"
}
junit
allowEmptyResults:
true
,
testDataPublishers:
[[
$class
:
'ClaimTestDataPublisher'
]],
...
...
Write
Preview
Supports
Markdown
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