diff --git a/vars/symfonyAppPipeline.groovy b/vars/symfonyAppPipeline.groovy index 0c543b4..e4c25d8 100644 --- a/vars/symfonyAppPipeline.groovy +++ b/vars/symfonyAppPipeline.groovy @@ -49,7 +49,7 @@ def call(String baseImage = "ubuntu:22.04") { sh ''' CHANGED_FILES=$(git diff --name-only --diff-filter=ACMRTUXB "HEAD~..HEAD" | fgrep ".php" | tr "\n" " ") if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)\\.php?|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection -- %s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi - php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --using-cache=no --format junit > php-cs-fixer.xml ${EXTRA_ARGS} + php-cs-fixer fix --config=.php-cs-fixer.dist.php -v --dry-run --using-cache=no --format junit ${EXTRA_ARGS} > php-cs-fixer.xml || true ''' def report = sh(script: "junit2md php-cs-fixer.xml", returnStdout: true) if (env.CHANGE_ID) {