Adapt tests to future new Build Scan publication message (#708)

Similar to https://github.com/gradle/actions/pull/651, a new Build Scan
publication message will be introduced in the next Develocity Gradle
plugin. This PR just adapts the test.
This commit is contained in:
Alexis Tual 2025-08-18 21:20:55 +02:00 committed by GitHub
parent 017a9effdb
commit 70964b4c8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -355,7 +355,7 @@ class TestDevelocityInjection extends BaseInitScriptTest {
}
void outputContainsBuildScanUrl(BuildResult result) {
def opt = ['Publishing build scan...', 'Publishing Build Scan...'].stream()
def opt = ['Publishing build scan...', 'Publishing Build Scan...', 'Publishing Build Scan to Develocity...'].stream()
.filter { result.output.contains("${it}\n${mockScansServer.address}s/$PUBLIC_BUILD_SCAN_ID") }.findFirst()
assert opt.isPresent()
def message = opt.get()