You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by da...@apache.org on 2025/06/30 18:58:41 UTC
(kafka) 03/03: supply access key to step
This is an automated email from the ASF dual-hosted git repository.
davidarthur pushed a commit to branch jun-29-enable-remote-gradle-caching
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit f49e70b90ebc6ae6343e27f58a90d176ea462d47
Author: David Arthur <mu...@gmail.com>
AuthorDate: Sun Jun 29 18:51:55 2025 -0400
supply access key to step
---
.github/workflows/build.yml | 1 +
settings.gradle | 7 ++++---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index da1ba0a9e85..fd7e680b076 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -134,6 +134,7 @@ jobs:
- name: Compile and validate
env:
SCAN_ARG: ${{ inputs.is-public-fork && '--no-scan' || '--scan' }}
+ DEVELOCITY_ACCESS_KEY: ${{ secrets.KAFKA_DEVELOCITY_ACCESS_KEY }}
# Gradle flags
# --build-cache: Let Gradle restore the build cache
# --info: For now, we'll generate lots of logs while setting up the GH Actions
diff --git a/settings.gradle b/settings.gradle
index 3ce20e116b7..8aaea44f8f4 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -61,10 +61,11 @@ buildCache {
remote(develocity.buildCache) {
enabled = true
- // Check for the presence of the DEVELOCITY_ACCESS_KEY environment variable as a proxy for whether this is a fork or not.
- // Forks should not try to push to the remote cache as they will not have permission to do so.
+ // Check for the presence of the DEVELOCITY_ACCESS_KEY environment variable
+ // as a proxy for whether this is a fork or not. Forks should not try to push
+ // to the remote cache as they will not have permission to do so.
def accessKey = System.getenv('DEVELOCITY_ACCESS_KEY')
- push = isGithubActions
+ push = isGithubActions && accessKey
}
}