Skip to content

Commit

Permalink
HSEARCH-5094 Don't even try to push to the remote cache in pull requests
Browse files Browse the repository at this point in the history
The credentials are only available when building pull requests
on Jenkins, and those credentials don't give write access to the build
cache, so let's spare ourselves the warnings about 403 errors.
  • Loading branch information
yrodiere committed Mar 1, 2024
1 parent d2495dd commit fded149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .mvn/gradle-enterprise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</local>
<remote>
<enabled>#{properties['no-build-cache'] == null}</enabled>
<storeEnabled>#{env['CI'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != ''}</storeEnabled>
<storeEnabled>#{env['CI'] != null and env['CHANGE_ID'] == null and env['GITHUB_BASE_REF'] == null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != null and env['GRADLE_ENTERPRISE_ACCESS_KEY'] != ''}</storeEnabled>
</remote>
</buildCache>
</gradleEnterprise>

0 comments on commit fded149

Please sign in to comment.