--- /dev/null
+---
+- project:
+ name: netvirt-job-reports
+ project: netvirt
+ jobs:
+ - netvirt-job-reports
+ report-jobnames: >
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-fluorine
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-snat-conntrack-fluorine
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-oxygen
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-snat-conntrack-oxygen
+ report-logurl: 'https://logs.opendaylight.org/releng/vex-yul-odl-jenkins-1'
+ report-numjobs: 50
+ report-path: '/tmp/jobreports'
+
+- job-template:
+ name: '{prefix}netvirt-job-reports'
+ id: netvirt-job-reports
+ node: centos7-builder-2c-2g
+ project-type: freestyle
+ disabled: false
+
+ properties:
+ - opendaylight-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+
+ parameters:
+ - opendaylight-infra-parameters:
+ os-cloud: '{os-cloud}'
+ project: '{project}'
+ branch: '{branch}'
+ refspec: 'refs/heads/{branch}'
+ artifacts: '{archive-artifacts}'
+ - string:
+ name: JOB_NAMES
+ default: '{report-jobnames}'
+ description: |
+ Space separated list of job names to process. Example:
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-fluorine
+ netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-queens-upstream-stateful-snat-conntrack-fluorine
+ - string:
+ name: LOG_URL
+ default: '{report-logurl}'
+ description: 'Logs url'
+ - string:
+ name: NUM_JOBS
+ default: '{report-numjobs}'
+ description: 'Number of jobs to process'
+ - string:
+ name: REPORT_PATH
+ default: '{report-path}'
+ description: 'Output path to write files'
+
+ wrappers:
+ - opendaylight-infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ builders:
+ - run-job-reports
+
+ triggers:
+ - timed: '@daily'
+
+ publishers:
+ - lf-infra-publish
+
+- builder:
+ name: run-job-reports
+ builders:
+ - shell: !include-raw-escape:
+ - run-reports.sh
--- /dev/null
+#!/bin/bash
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2018 Red Hat, Inc. and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+echo "Executing run-reports.sh"
+set -e -o pipefail # Fail on errors, give stacktrace
+set -x # Enable trace
+
+virtualenv --quiet "/tmp/v/odltools"
+source /tmp/v/odltools/bin/activate
+pip install odltools
+mkdir $REPORT_PATH
+python -m odltools csit reports --numjobs $NUM_JOBS --path $REPORT_PATH --url $LOG_URL --jobnames $JOB_NAMES
+python -m odltools csit exceptions --numjobs $NUM_JOBS --path $REPORT_PATH --url $LOG_URL --jobnames $JOB_NAMES
+mkdir -p $WORKSPACE/archives
+cp $REPORT_PATH/*.txt $WORKSPACE/archives
+exit 0