This message was deleted.
# community-support
s
This message was deleted.
j
I want to scan what is happening precisely in my Gradle task in Self-Hosted Jenkins. (Cause it is especially slow only in Jenkins machine.) So I’ve tried
gradle myTask --scan
in my Jenkins task, but the below message appeared.
Copy code
The build scan was not published due to a configuration problem.



The Gradle Terms of Service have not been agreed to.



For more information, please see <https://gradle.com/help/plugin-terms-of-service>.



Alternatively, if you are using Gradle Enterprise, specify the server location.

For more information, please see <https://gradle.com/help/plugin-enterprise-config>.
But following the description, it only shows how to handle terms only in Gradle enterprise plugin, not for others.
Copy code
gradleEnterprise {
    buildScan {
        termsOfServiceUrl = "<https://gradle.com/terms-of-service>"
        termsOfServiceAgree = "yes"
    }
}
Execution after add upper codes
Copy code
Could not find method gradleEnterprise() for arguments [build_ih85hvlem9wc3ixh6nvigil5$_run_closure4@27e0752a] on root project 'myproject' of type org.gradle.api.Project.
oh what version are you using?
j
I’m using gradle 6.8.3
e
are you adding
gradleEnterprise
in
build.gradle
or in
settings.gradle
?
j
yep, I’ve add it in my root
build.gradle
file. (not in other configuration blocks scope
{}
& at end of file) Is there any additional plugin for
gradleEnterprise { }
configuration?
e
it is the
com.gradle.enterprise
plugin, as documented on that page
it should be automatically applied when you use `--scan`…
are you possibly running Gradle both with and without the
--scan
parameter?
🙌 1
j
Thanks, after adding the enterprise plugin, the problem has been resolved. At first, I’ve afraid that using enterprise plugin requires charging for enterprise plan, so I didn’t try it. But is it right that using plugin itself doesn’t charge?
e
yes, the free build scan is part of the enterprise plugin
j
oh i see, thank you for kind and detailed answers! 😸