How to use --scan in CI?

(Louis) #1

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

Thanks in advance!

0 Likes

(Fran├žois Guillot) #2

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

0 Likes