From: Trevor Bramwell Date: Mon, 31 Aug 2020 17:45:06 +0000 (+0000) Subject: Merge "Add jenkins job for running barometer tests on a daily basis" X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=dff45d0810ed6b37fe437e7c58873cf2c923f612;hp=6b2253fe0008d248f5599f6ef123a55f76336980;p=releng.git Merge "Add jenkins job for running barometer tests on a daily basis" --- diff --git a/jjb/barometer/barometer.yaml b/jjb/barometer/barometer.yaml index 5ebab5a0c..f61110a40 100644 --- a/jjb/barometer/barometer.yaml +++ b/jjb/barometer/barometer.yaml @@ -12,6 +12,7 @@ - 'barometer-verify-{stream}' - 'barometer-merge-{stream}' - 'barometer-daily-{stream}' + - 'barometer-plugins-tests' stream: - master: @@ -149,6 +150,38 @@ - shell: !include-raw-escape: ./barometer-build.sh - shell: !include-raw-escape: ./barometer-upload-artifact.sh +- job-template: + name: 'barometer-plugins-tests' + + branch: master + + disabled: '{obj:disabled}' + + parameters: + - string: + name: BRANCH + default: '{branch}' + + triggers: + - timed: '@midnight' + + builders: + - shell: | + rm -rf barometer + git clone "https://gerrit.opnfv.org/gerrit/barometer" + cd barometer + sudo docker build -t opnfv/barometer-collectd-tests-base --network=host \ + -f docker/barometer-collectd-plugin-tests/Dockerfile.base . + docker build -t opnfv/barometer-collectd-tests --network=host \ + -f docker/barometer-collectd-plugin-tests/Dockerfile . + docker run -t --net=host + -v `pwd`/src/collectd/collectd_sample_configs-master:/opt/collectd/etc/collectd.conf.d \ + -v /var/run:/var/run -v /tmp:/tmp -v `pwd`/plugin_test:/tests \ + --privileged opnfv/barometer-collectd-tests:latest + docker container rm $(sudo docker container ls -aq) + docker rmi opnfv/barometer-collectd-tests:latest + docker rmi opnfv/barometer-collectd-tests-base:latest + ######################## # parameter macros ########################