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 Feb 29, 2024
1 parent 0140d56 commit db3eb1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .mvn/gradle-enterprise.xml
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 db3eb1d

Please sign in to comment.