Hi guys,
Gradle: 6.3
gradle-enterprise-plugin: 3.2.1
I’m building a 3-stage project using TravisCI. Each stage has a --scan
option assigned which generates three reports at the end of the build. Sometimes it seems a waste of time and resource to scan the project, so what I’d like to have is a possibility to activate the Gradle scan externally by setting up a system property or environment variable e.g.:
# Build Stage
./gradlew -Dscan=$REPORT_ON task1
# Test Stage
./gradlew -Dscan=$REPORT_ON task2
# Deploy Stage
./gradlew -Dscan=$REPORT_ON task3
Please advise if there is any way to do it now?
Thanks!