diff --git a/jobs/dockerfiles.yaml b/jobs/dockerfiles.yaml index e72e94a..cb6256c 100644 --- a/jobs/dockerfiles.yaml +++ b/jobs/dockerfiles.yaml @@ -1,18 +1,17 @@ - job: name: swh-jenkins-dockerfiles node: master scm: - git: url: http://forge.softwareheritage.org/source/swh-jenkins-dockerfiles.git wipe-workspace: false triggers: - pollscm: - cron: "*/30 * * * *" - - timed: "0 4 * * *" + cron: "H/30 * * * *" build-discarder: num-to-keep: 50 wrappers: - timestamps - ansicolor builders: - shell: make checkrebuild all diff --git a/jobs/swh-build.yaml b/jobs/swh-build.yaml index 4d8d87c..a80d24d 100644 --- a/jobs/swh-build.yaml +++ b/jobs/swh-build.yaml @@ -1,30 +1,30 @@ - job-template: name: swh-build-{name} 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: "0 */3 0 0 0" + cron: "H */3 * * *" wrappers: - timestamps builders: - shell: python3 setup.py sdist bdist_wheel publishers: - archive: artifacts: "dist/*" allow-empty: "true" fingerprint: "true" diff --git a/jobs/swh-metrics.yaml b/jobs/swh-metrics.yaml index 329dcb3..50cebdb 100644 --- a/jobs/swh-metrics.yaml +++ b/jobs/swh-metrics.yaml @@ -1,29 +1,29 @@ - job-template: name: swh-metrics-{name} 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: "0 */3 0 0 0" + cron: "H */3 * * *" wrappers: - timestamps builders: - shell: mkdir -p reports - shell: python3 -m tox -e flake8 - shell: python3 -m radon raw --json swh/ > 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 diff --git a/jobs/swh-tests.yaml b/jobs/swh-tests.yaml index 72c86c9..4de54f4 100644 --- a/jobs/swh-tests.yaml +++ b/jobs/swh-tests.yaml @@ -1,47 +1,47 @@ - job-template: name: swh-tests-{name} 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: "0 */3 0 0 0" + cron: "H */3 * * *" wrappers: - timestamps builders: - shell: mkdir -p reports - shell: python3 -m tox -e py3 -- --with-coverage --cover-xml --cover-xml-file=./reports/covergage.xml --cover-package=swh.{name} --with-xunit --xunit-file=./reports/test-results.xml - shell: python3 -m coverage xml -o ./reports/coverage.xml publishers: - junit: results: "reports/test-results.xml" - cobertura: report-file: "reports/coverage.xml" fail-no-reports: "false" fail-unhealthy: "false" fail-unstable: "false" only-stable: "false" source-encoding: "UTF_8" zoom-coverage-chart: "false" targets: - files: healthy: 10 unhealthy: 20 failing: 30 - method: healthy: 50 unhealthy: 40 failing: 30