A PHP_CodeSniffer image for checking Drupal code compliance.
docker run -it --rm -v /path/to/code:/app millerrs/phpcs-drupal
stage('Check Drupal Code Compliance') {
agent {
docker {
image 'millerrs/phpcs-drupal'
}
}
steps {
sh 'phpcs --standard=Drupal,DrupalPractice web/modules/custom'
}
}