diff --git a/jobs/templates/swh-metrics.yaml b/jobs/templates/swh-metrics.yaml index f46e564..05b8c10 100644 --- a/jobs/templates/swh-metrics.yaml +++ b/jobs/templates/swh-metrics.yaml @@ -1,41 +1,47 @@ - job-template: name: swh-{name}/metrics node: swh-tox parameters: - string: name: BRANCH default: '{branch|master}' scm: - git: refspec: 'refs/heads/{branch|master}' url: https://forge.softwareheritage.org/source/swh-{name}.git numToKeep: 20 triggers: - pollscm: cron: "H */3 * * *" wrappers: - timestamps builders: - shell: | if [ ! -f tox.ini ] then cat >tox.ini < reports/radon_raw.json - - shell: python3 -m radon cc --json swh/ > reports/radon_cc.json - - shell: python3 -m radon mi --json swh/ > reports/radon_mi.json + - shell: radon raw --json swh/ > reports/radon_raw.json + - shell: radon cc --json swh/ > reports/radon_cc.json + - shell: radon mi --json swh/ > reports/radon_mi.json + + publishers: + - archive: + artifacts: "reports/*" + allow-empty: "true" + fingerprint: "true"