From 442e59f6cfc6d91fc844dd21aa52165797c56b27 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 12 Feb 2021 10:04:13 -0500 Subject: [PATCH] Attempt to add PHPStan messages to CI --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f0510b91..e66efb67 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,7 +35,12 @@ pipeline { } } stage('Code Cleanliness') { - agent any + agent { + docker { + image 'php:8-cli-alpine' + args '-u root --privileged' + } + } 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')])