evoadmin-web/.Jenkinsfile
Mathieu Trossevin 7b29422730
All checks were successful
Tests / PHPStan (static analysis) <sub>Send us [feedback](https://github.com/jenkinsci/junit-plugin/issues)
gitea/evoadmin-web/pipeline/pr-master This commit looks good
Attempt to enable use of more than one agent
Primarily so that we could use shellcheck in the future on top of
PHPStan.
2023-11-15 10:57:20 +01:00

24 lines
646 B
Plaintext

pipeline {
agent none
stages {
stage('PHPStan (static analysis)') {
agent {
docker {
image 'php:8.2-cli'
}
}
steps {
script {
sh 'curl -fsSL https://github.com/phpstan/phpstan/releases/download/1.10.41/phpstan.phar -o phpstan.phar'
sh 'php ./phpstan.phar analyse --configuration=phpstan.neon --memory-limit=512M --error-format=junit > phpstan-results.junit.xml'
}
}
post {
always {
junit 'phpstan-results.junit.xml'
}
}
}
}
}