mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
bc29f77548
commit
82509cb97b
1 changed files with 15 additions and 10 deletions
|
@ -106,23 +106,28 @@ def getTestFailuresMessage() {
|
|||
}
|
||||
|
||||
def messages = []
|
||||
messages << "---\n\n### [Test Failures](${env.BUILD_URL}testReport)"
|
||||
|
||||
failures.take(5).each { failure ->
|
||||
failures.take(3).each { failure ->
|
||||
messages << """
|
||||
---
|
||||
|
||||
### [Test Failures](${env.BUILD_URL}testReport)
|
||||
<details><summary>${failure.fullDisplayName}</summary>
|
||||
|
||||
[Link to Jenkins](${failure.url})
|
||||
"""
|
||||
|
||||
```
|
||||
${failure.stdOut}
|
||||
```
|
||||
</details>
|
||||
if (failure.stdOut) {
|
||||
messages << "\n#### Standard Out\n```\n${failure.stdOut}\n```"
|
||||
}
|
||||
|
||||
---
|
||||
"""
|
||||
if (failure.stdErr) {
|
||||
messages << "\n#### Standard Error\n```\n${failure.stdErr}\n```"
|
||||
}
|
||||
|
||||
if (failure.stacktrace) {
|
||||
messages << "\n#### Stack Trace\n```\n${failure.stacktrace}\n```"
|
||||
}
|
||||
|
||||
messages << "</details>\n\n---"
|
||||
}
|
||||
|
||||
if (failures.size() > 3) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue