This message was deleted.
# develocity
s
This message was deleted.
e
Does
--warn
help instead of
--quiet
?
e
we have this in our BuildScanExtension to address exactly this:
Copy code
if (gradle.startParameter.logLevel == LogLevel.QUIET) {
  buildScanPublished {
    println("Build scan published: $buildScanUri")
  }
}
the startParameter part is actually just
isRunningOnCi
for us because that’s the only place --quiet is used, but the idea should carry over
a
@Eric Wendelin,
warn
helps just a little bit, because of noise in warn channel as well. @eric, I will try tomorrow your suggestion. It should work. Thanks!
seems like
gradle
is breaking configuration cache 😞
WARNING: Error invoking build scan buildScanPublished action Could not get unknown property 'gradle' for object of type com.gradle.scan.plugin.internal.o.n$1.
e
The code i pasted from is in a Settings plugin, so i can use settings.gradle without configuration cache issues. Depends on where your code is and what you have access to. If this is an issue specific to CI for you like it is for us, maybe just key off the CI env var instead?
a
Actually, your code snipped is working quite well. I was modified a little too much. However, there is still a problem. I did the first run with
-q
, so now I always got the double link. Small problem