This message was deleted.
# community-support
s
This message was deleted.
v
Maybe this?
Copy code
val ci = providers
    .environmentVariable("CI")
    .map { it.toBoolean() }
    .orElse(false)
reports {
    xml.required.set(ci)
    html.required.set(ci.map { !it })
}
👍 1
c
yeah, that's probably right, I was remember that I should pass the provider after I posted it, but then I was working out how to coerce it to a boolean, thanks
👌 1