osmith submitted this change.

View Change

Approvals: fixeria: Looks good to me, approved Jenkins Builder: Verified
jobs/master-builds: archive core, testsuite.log

In case one of the master-buils is segfaulting or has an error in the
testsuite, collect the relevant files and store them as artifacts.

It was asked in the related issue to do this only on error, however
while there's an option to archive only artifacts when a build is
successful, there is not an option to do it only on failure. So just do
it always, the testsuite.log file is typically just a few kb in size.
core files should only get generated on error.

Closes: OS#5642
Change-Id: I91d4b995b16c8e028a5dff19b0e0f09c01d8c8c6
---
M jobs/master-builds.yml
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index abeb4d6..eb1bf38 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -478,6 +478,9 @@
- shell: '{obj:cmd}'

publishers:
+ - archive:
+ allow-empty: true
+ artifacts: '**/core, **/testsuite.log'
- warnings:
console-log-parsers:
- 'GNU C Compiler 4 (gcc)'

To view, visit change 29094. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I91d4b995b16c8e028a5dff19b0e0f09c01d8c8c6
Gerrit-Change-Number: 29094
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-MessageType: merged