summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/jobs
diff options
context:
space:
mode:
authordeepshikhaaa <deepshikhakhandelwal8@gmail.com>2017-07-24 15:54:20 +0530
committerNigel Babu <nigelb@redhat.com>2017-08-08 08:05:34 +0000
commit4416075a234a5829ea9674241fe77ebe0c597ed6 (patch)
tree9c80788ea09e7da3239c0093619de48147e25527 /build-gluster-org/jobs
parentaefb99602ec6d72b9598ee2a79a8c057af7f96ce (diff)
Added a line coverage job in gluster
Change-Id: I7fa9e3e52d32451f976dc474e4ad37c42cbeb054
Diffstat (limited to 'build-gluster-org/jobs')
-rw-r--r--build-gluster-org/jobs/lcov.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/build-gluster-org/jobs/lcov.yml b/build-gluster-org/jobs/lcov.yml
new file mode 100644
index 0000000..a2146b1
--- /dev/null
+++ b/build-gluster-org/jobs/lcov.yml
@@ -0,0 +1,46 @@
+- job:
+ name: line-coverage
+ node: lcov
+ description: Checks line coverage by the regression test in gluster
+ project-type: freestyle
+ concurrent: true
+
+ scm:
+ - git:
+ branches:
+ - $GERRIT_BRANCH
+ refspec: $GERRIT_REFSPEC
+ choosing-strategy: gerrit
+ url: https://github.com/gluster/glusterfs
+
+ properties:
+ - discard-after-x:
+ x: 30
+ - one-build-per-node
+
+ triggers:
+ - timed: "H 0 * * *"
+
+ builders:
+ - shell: !include-raw: ../scripts/lcov.sh
+
+ publishers:
+ - html-publisher:
+ name: "Line Coverage Report"
+ dir: "coverage/"
+ files: "index.html"
+ keep-all: true
+ link-to-last-build: true
+
+ parameters:
+ - string:
+ default: refs/heads/master
+ description: 'For review 12345 and patch set 6, this will be refs/changes/45/12345/6. Default: Tip of master'
+ name: GERRIT_REFSPEC
+ - string:
+ default: master
+ description: 'Name of the branch you want to build from. We usually build from master'
+ name: GERRIT_BRANCH
+
+ wrappers:
+ - timestamps