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