From 49dfd66a4f6cae4ca698ac65ca7df8eaa5ff8346 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 8 Sep 2021 09:59:51 +0200 Subject: [PATCH] Disable chromatic (#1801) --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a1c0a5dc37..1d2f085c0b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -213,6 +213,11 @@ void isBuildSuccess() { } void withCheckEnvironment(Closure closure) { + // surround call withChromaticEnvironment to enable chromatic analyzation + closure.call() +} + +void withChromaticEnvironment(Closure closure) { // apply chromatic environment only if we are on a pr build or on the develop branch if (env.CHANGE_ID || env.BRANCH_NAME == 'develop') { withCredentials([