csantanapr closed pull request #3314: Configure Gradle build scan plugin URL: https://github.com/apache/incubator-openwhisk/pull/3314
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/build.gradle b/build.gradle index e53f40f035..b91005e8e3 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,16 @@ buildscript { } } +plugins { + id "com.gradle.build-scan" version "1.12.1" +} + +buildScan { + termsOfServiceUrl = 'https://gradle.com/terms-of-service' + termsOfServiceAgree = 'yes' + publishAlwaysIf(System.getenv('CI') != null) +} + subprojects { apply plugin: 'scalafmt' scalafmt.configFilePath = gradle.scalafmt.config diff --git a/tools/build/README.md b/tools/build/README.md index 0c369cb2b2..29a2121222 100644 --- a/tools/build/README.md +++ b/tools/build/README.md @@ -68,6 +68,19 @@ The logs are saved to `./B-build.log` and can be reprocessed using `citool` with citool -i -b B cat -s -g "tid_124" whisk/logs N ``` +## Gradle Build Scan Integration + +OpenWhisk builds on CI setups have [Gradle Build Scan](https://gradle.com/build-scans) integrated. Each build on travis pushes scan reports to +[Gradle Scan Community Hosted Server](https://scans.gradle.com). To see the scan report you need to check the travis build logs for lines like +below + +``` +Publishing build scan... +https://gradle.com/s/reldo4qqlg3ka +``` + +The url above is the scan report url and is unique per build + ## Troubleshooting If you encounter an error `ImportError: No module named pkg_resources` while running `redo`, try the workaround below ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services