Skip to content

Commit 51d3697

Browse files
committed
[Build] Fix cacheability of discovery-azure-classic
Also update cache validation scripts
1 parent deb838c commit 51d3697

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.buildkite/scripts/gradle-build-cache-validation.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
set -euo pipefail
44

5-
VALIDATION_SCRIPTS_VERSION=2.5.1
5+
VALIDATION_SCRIPTS_VERSION=2.7.1
66
GRADLE_ENTERPRISE_ACCESS_KEY=$(vault kv get -field=value secret/ci/elastic-elasticsearch/gradle-enterprise-api-key)
77
export GRADLE_ENTERPRISE_ACCESS_KEY
8-
9-
curl -s -L -O https://github.com/gradle/gradle-enterprise-build-validation-scripts/releases/download/v$VALIDATION_SCRIPTS_VERSION/gradle-enterprise-gradle-build-validation-$VALIDATION_SCRIPTS_VERSION.zip && unzip -q -o gradle-enterprise-gradle-build-validation-$VALIDATION_SCRIPTS_VERSION.zip
8+
curl -s -L -O https://github.com/gradle/gradle-enterprise-build-validation-scripts/releases/download/v$VALIDATION_SCRIPTS_VERSION/develocity-gradle-build-validation-$VALIDATION_SCRIPTS_VERSION.zip && unzip -q -o develocity-gradle-build-validation-$VALIDATION_SCRIPTS_VERSION.zip
109

1110
# Create a temporary file
1211
tmpOutputFile=$(mktemp)
1312
trap "rm $tmpOutputFile" EXIT
1413

1514
set +e
16-
gradle-enterprise-gradle-build-validation/03-validate-local-build-caching-different-locations.sh -r https://github.com/elastic/elasticsearch.git -b $BUILDKITE_BRANCH --gradle-enterprise-server https://gradle-enterprise.elastic.co -t precommit --fail-if-not-fully-cacheable | tee $tmpOutputFile
15+
develocity-gradle-build-validation/03-validate-local-build-caching-different-locations.sh -r https://github.com/elastic/elasticsearch.git -b $BUILDKITE_BRANCH --develocity-server https://gradle-enterprise.elastic.co -t precommit --fail-if-not-fully-cacheable | tee $tmpOutputFile
1716
# Capture the return value
1817
retval=$?
1918
set -e

plugins/discovery-azure-classic/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ TaskProvider createKey = tasks.register("createKey", LoggedExec) {
6565
outputs.file(keystore).withPropertyName('keystoreFile')
6666
executable = "${buildParams.runtimeJavaHome.get()}/bin/keytool"
6767
getStandardInput().set('FirstName LastName\nUnit\nOrganization\nCity\nState\nNL\nyes\n\n')
68+
String keystorePath = projectDir.toPath().relativize(keystore.toPath()).toString()
6869
args '-genkey',
6970
'-alias', 'test-node',
70-
'-keystore', keystore,
71+
'-keystore', keystorePath,
7172
'-keyalg', 'RSA',
7273
'-keysize', '2048',
7374
'-validity', '712',

0 commit comments

Comments
 (0)