Disable chromatic (#1801)

This commit is contained in:
Sebastian Sdorra
2021-09-08 09:59:51 +02:00
committed by GitHub
parent 92fa67e937
commit 49dfd66a4f

5
Jenkinsfile vendored
View File

@@ -213,6 +213,11 @@ void isBuildSuccess() {
}
void withCheckEnvironment(Closure<Void> closure) {
// surround call withChromaticEnvironment to enable chromatic analyzation
closure.call()
}
void withChromaticEnvironment(Closure<Void> 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([