Skip to content

Commit deb78e1

Browse files
authored
Migrate to OSS Community Develocity Instance (#11845)
1 parent fb3fed4 commit deb78e1

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ permissions:
4343
contents: read
4444

4545
env:
46-
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
46+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4747

4848
jobs:
4949
main:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ permissions:
4343
env:
4444
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
4545
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
46-
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
46+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
4747

4848
jobs:
4949
core:

.github/workflows/moby-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- cron: '59 23 * * *'
1414

1515
env:
16-
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
16+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1717

1818
jobs:
1919
test_docker:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=33816473&machine=standardLinux32gb&devcontainer_path=.devcontainer%2Fdevcontainer.json&location=EastUs)
88

9-
[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://ge.testcontainers.org/scans)
9+
[![Revved up by Develocity](https://img.shields.io/badge/Revved%20up%20by-Develocity-06A0CE?logo=Gradle&labelColor=02303A)](https://community.develocity.cloud/scans?search.rootProjectNames=testcontainers-java)
1010

1111
> Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
1212

settings.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
}
66
}
77
dependencies {
8-
classpath "com.gradle.enterprise:com.gradle.enterprise.gradle.plugin:3.19.2"
9-
classpath "com.gradle:common-custom-user-data-gradle-plugin:2.5.0"
8+
classpath "com.gradle:develocity-gradle-plugin:4.4.1"
9+
classpath "com.gradle:common-custom-user-data-gradle-plugin:2.6.0"
1010
classpath "org.gradle.toolchains:foojay-resolver:0.8.0"
1111
}
1212
}
@@ -39,19 +39,22 @@ buildCache {
3939
enabled = !isCI
4040
}
4141
remote(develocity.buildCache) {
42-
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY")
4342
enabled = true
43+
// Check access key presence to avoid build cache errors on PR builds when access key is not present
44+
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE") && System.getenv("DEVELOCITY_ACCESS_KEY") != null
4445
}
4546
}
4647

4748
develocity {
49+
server = "https://community.develocity.cloud"
50+
projectId = "testcontainers"
4851
buildScan {
49-
server = "https://ge.testcontainers.org/"
5052
publishing.onlyIf {
5153
it.authenticated
5254
}
5355
uploadInBackground = !isCI
54-
capture.fileFingerprints = true
56+
obfuscation {
57+
ipAddresses { it.collect { "0.0.0.0" } }
58+
}
5559
}
56-
5760
}

0 commit comments

Comments
 (0)