diff options
author | Vishal Sharma <vishaliitr7@gmail.com> | 2020-08-21 19:44:25 +0530 |
---|---|---|
committer | Vishal Sharma <vishaliitr7@gmail.com> | 2020-08-21 19:59:59 +0530 |
commit | b51101aa47e59b784f8dc713622096fe5586de0d (patch) | |
tree | 96d0ae1d13a7171e048e7eedb1fcd576f97c0ce3 /jjb/barometer | |
parent | 7d6033ea6f9301a5dd6a3913a6a2990bd52eda76 (diff) |
Add jenkins job for running barometer tests on a daily basis
Signed-off-by: Vishal Sharma <vishaliitr7@gmail.com>
Change-Id: I8412bf96ff882296edba0a56d409dac900264525
Diffstat (limited to 'jjb/barometer')
-rw-r--r-- | jjb/barometer/barometer.yaml | 33 |
1 files changed, 33 insertions, 0 deletions
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 ######################## |