diff --git a/project/Build.scala b/project/Build.scala index b61a0445753b..ab4d2960774c 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -349,6 +349,7 @@ object Build { buildCache .withLocal(buildCache.local.withEnabled(true).withStoreEnabled(true)) .withRemote(buildCache.remote.withEnabled(true).withStoreEnabled(isInsideCI)) + .withRequireClean(!isInsideCI) ) .withTestRetry( config.testRetry