-
Notifications
You must be signed in to change notification settings - Fork 1k
Use develocity build cache in PRs and local builds #15579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
36414ef to
4de1ae8
Compare
|
It might be beneficial to enable anonymous access for develocity and always use it from ci. Then PR builds could also use the build cache. |
| } | ||
|
|
||
| buildScan { | ||
| uploadInBackground = !isCI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested and uploadInBackground didn't make a noticeable difference locally so removed
| buildCache { | ||
| remote(HttpBuildCache::class) { | ||
| url = uri("$develocityServer/cache/") | ||
| isPush = isCI && develocityAccessKey.isNotEmpty() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the magic to get it to use our develocity server just for the (read-only) build cache 🤞
good idea, I think I got this working in the PR now |
wow, great idea, check out the PR build time now!! |
No description provided.