Closed musketyr closed 3 years ago
Ah. So hostUrl
should be decoupled from organization
and validation should be skipped/made optional?
well, the core problem is that even if hostUrl
is set to a different value, this condition is still true
I guess it's some weird Gradle voodoo going on.
Huh, that's odd. So hostUrl
must be setup but allows for an external value to be provided by sonar.host.url
. I remember that change. However the condition , having it evaluate no matter the value of the hostUrl
property, ... perhaps if the value were to be checked against a local variable, to avoid "static Groovy voodoo" (Gralde 6 relying on Groovy 2.5.x is unnerving to say the least ...)
There is currently no easy way how to set
hostUrl
from theconfig
as when it is set then you have a validation error of missingorganization
. The host URL must be set usingsonar.host.url
instead even for invocations which does not include thesonarqube
task.The following setup does not work: