Skip to content

Commit

Permalink
[Gradle] Fix build finished hooks on ci when using configuration cache
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Nov 15, 2024
1 parent 9489726 commit 3201815
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ develocity {
}

if (onCI) { //Buildkite-specific build scan metadata
def safeName = { String s -> s.replaceAll(/[^a-zA-Z0-9_\-\.]+/, ' ').trim().replaceAll(' ', '_') }
String buildKiteUrl = System.getenv('BUILDKITE_BUILD_URL')
def branch = System.getenv('BUILDKITE_PULL_REQUEST_BASE_BRANCH') ?: System.getenv('BUILDKITE_BRANCH')
def repoMatcher = System.getenv('BUILDKITE_REPO') =~ /(https:\/\/github\.com\/|git@github\.com:)(\S+)\.git/
Expand Down Expand Up @@ -131,7 +132,3 @@ develocity {
}
}
}

static def safeName(String string) {
return string.replaceAll(/[^a-zA-Z0-9_\-\.]+/, ' ').trim().replaceAll(' ', '_').toLowerCase()
}

0 comments on commit 3201815

Please sign in to comment.