From 8699ec0a9d458fda1cb6f8aeb1108f800d5426f7 Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 18 May 2022 17:33:25 +0200 Subject: [PATCH] pipeline(symfony): fix php-cs-fixer-stage --- vars/symfonyAppPipeline.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {