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')])