From 39b1d02862442a34d8e9813d632fa5218668e209 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 12 Feb 2021 10:07:55 -0500 Subject: [PATCH] Attempt to add PHPStan messages to CI --- Jenkinsfile | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e66efb67..6814daed 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,15 +35,10 @@ pipeline { } } stage('Code Cleanliness') { - agent { - docker { - image 'php:8-cli-alpine' - args '-u root --privileged' - } - } + agent any steps { - sh "php ./vendor/bin/phpstan analyse src/ -c phpstan.neon -n --no-ansi --no-progress --error-format=checkstyle > build/logs/checkstyle.xml" - recordIssues(tools: [checkstyle(reportEncoding: 'UTF-8')]) + sh "php8 ./vendor/bin/phpstan analyse src/ -c phpstan.neon -n --no-ansi --no-progress --error-format=checkstyle | awk '{\$1=\$1;print}' > build/logs/checkstyle.xml" + recordIssues(tools: [checkstyle(reportEncoding: 'UTF-8', reportFileName: 'build/logs/checkstyle.xml')]) } } stage('Coverage') {