Changes for page Test Coverage
Last modified by Vincent Massol on 2023/04/14 15:19
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -109,12 +109,24 @@ 109 109 110 110 === Using Clover + Jenkins === 111 111 112 -* Install Jenkins 2.0+and the following plugins:112 +* Install Jenkins LTS and the following plugins: 113 113 ** Pipeline plugin 114 -** XVnc plugin 115 -* Make sure to have Maven ("mvn" executable) + VNCServer ("vncserver" executable) installed on the build agent 116 -* Build agent must be running unix 117 -* Setup a Pipeline job and make it point to the {{scm project="xwiki-jenkins-pipeline" path="scripts/clover.groovy"}}following pipeline script{{/scm}}. 114 +** Docker Cloud Plugin 115 +* Setup Jenkins to spawn Docker agents using the [[XWiki Build image>>https://github.com/xwiki/xwiki-docker-build/tree/master/build]]. 116 +* Setup a Global Pipeline Library in Jenkins that points to https://github.com/xwiki/xwiki-jenkins-pipeline (make sure it's loaded implicitly). 117 +* Setup a Jenkins Clover pipeline job with a script such as:((( 118 +{{code language='groovy'}} 119 +node('docker') { 120 + xwikiClover([ 121 + [baseline: "20171222-1835", fail: false], 122 + [baseline: "20190106-0207", fail: false], 123 + [baseline: "latest", fail: true] 124 + ]) 125 +} 126 +{{/code}} 127 +))) 128 +* You can check the {{scm project="xwiki-jenkins-pipeline" path="vars/xwikiClover.groovy"}}code for the ##xwikiClover## step{{/scm}}. 129 +* Check the [[results>>http://maven.xwiki.org/site/clover/]]. 118 118 119 119 Note that the Clover pipeline script will generate a report with differences from the previous passing report showing the contributions (positive and negative) of each module to the global TPC. 120 120