Page MenuHomeSoftware Heritage

jobs/swh-environment: Improve build script
ClosedPublic

Authored by anlambert on Sep 28 2020, 4:41 PM.

Details

Summary

Run all test suites and save their output to dedicated log files.

Add Jenkins artifacts for log files of failed tests suites.

Silent verbose maven output.

Successfully tested here: https://jenkins.softwareheritage.org/job/DENV/job/tests/124/

Diff Detail

Repository
rCJSWH Jenkins jobs
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda added a subscriber: douardda.

LGTM (except the "rm -f ../$module.log " for which I am not convinced it's a good idea)

This revision is now accepted and ready to land.Sep 29 2020, 11:47 AM

LGTM (except the "rm -f ../$module.log " for which I am not convinced it's a good idea)

What is the interest to keep log files when tests succeeded ? Proceeding like this, you directly see which swh module has failing tests
when you reach the Jenkins build Web UI by looking at the list of archived artifacts.