How to use --scan in CI?

How do I teach GitLab CI or Circle CI (or any other CI) how to accept the ToS?

Thanks in advance!

Hi @louis993546

In a CI environment, you have to accept the ToS programmatically.

buildScan {
    termsOfServiceUrl = 'https://gradle.com/terms-of-service'
    termsOfServiceAgree = 'yes'
}

Please have a look at the Build Scan Plugin User Manual for more information.

François

Hey, it seems this page doesn’t exist anymore.

What is the modern solution?

Hi
The documentation is now available at Develocity Gradle Plugin User Manual | Develocity Docs