pipeline { agent any stages { stage('Build') { agent any steps { sh 'composer install' } } stage('Test') { steps { sh 'php ./bin/phpunit --coverage-clover=\'reports/coverage/coverage.xml\' --coverage-html=\'reports/coverage\'' } } stage('Coverage') { steps { step([$class: 'CloverPublisher', cloverReportDir: '/reports/coverage', cloverReportFileName: 'coverage.xml']) } } } }