From 457501001fe2138108d3a5ea2e7049f78de26f56 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Tue, 16 Feb 2021 14:57:43 -0500 Subject: [PATCH] Make PHPStan errors CI failures --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3103379d..9047611c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,11 +37,11 @@ pipeline { stage('Code Cleanliness') { agent any steps { - sh "php8 ./vendor/bin/phpstan analyse -c phpstan.neon --no-progress --no-ansi " + sh "php8 ./vendor/bin/phpstan analyse -c phpstan.neon --no-progress --no-ansi > build/logs/phpstan.log" recordIssues( failOnError: false, - tools: [phpStan(reportEncoding: 'UTF-8')] - ) + tools: [phpStan(reportEncoding: 'UTF-8', pattern: 'build/logs/phpstan.log')] + )) } } stage('Coverage') {