From cf970d41cf3ef1adb691b310113848f5119dcc38 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 28 May 2024 14:42:13 +0200
Subject: [PATCH] OZG-5271 OZG-5782 No color output in CI

And more parallel test processes (decided with Torsten).
---
 Jenkinsfile              | 3 +++
 alfa-client/package.json | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ec1878ee2a..6bea0018e3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -45,6 +45,9 @@ pipeline {
             }
         }
         stage('Client') {
+            environment {
+                FORCE_COLOR = 'false'
+            }
             steps {
                 script {
                     FAILED_STAGE=env.STAGE_NAME
diff --git a/alfa-client/package.json b/alfa-client/package.json
index 24125d43fe..0bdaa36c08 100644
--- a/alfa-client/package.json
+++ b/alfa-client/package.json
@@ -18,8 +18,8 @@
     "ci-build-admin": "nx container admin && cp -r dist/ apps/admin/",
     "ci-prodBuild": "nx run alfa:build --outputHashing=all --configuration production",
     "ci-prodBuild-admin": "nx container admin && cp -r dist/ apps/admin/",
-    "ci-test": "nx run-many --target=test --parallel 12 -- --runInBand --color=false",
-    "ci-sonar": "nx run-many --target=test --parallel 12 -- --runInBand --color=false --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner",
+    "ci-test": "nx run-many --target=test --parallel 20 -- --runInBand",
+    "ci-sonar": "nx run-many --target=test --parallel 20 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && npx sonar-scanner",
     "lint": "nx workspace-lint && nx lint",
     "affected:apps": "nx affected:apps",
     "affected:libs": "nx affected:libs",
-- 
GitLab