Skip to content

Commit

Permalink
Add version as identifier
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Kwok <[email protected]>
  • Loading branch information
andy-k-improving committed Jan 29, 2025
1 parent b3873c7 commit e929ac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integ-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,17 @@ task startPrometheus(type: SpawnProcessTask) {
mustRunAfter ':doctest:doctest'

doFirst {
File downloadedPrometheus = Paths.get("$projectDir/bin", 'prometheus.tar.gz').toFile()
if (!downloadedPrometheus.exists()) {
File prometheusFilePath = Paths.get("$projectDir/bin", "prometheus-${prometheus_binary_version}.tar.gz").toFile()
if (!prometheusFilePath.exists()) {
download.run {
src getPrometheusBinaryLocation()
dest new File("$projectDir/bin", 'prometheus.tar.gz')
dest prometheusFilePath
}
} else {
println "Prometheus File Already Exists"
}
copy {
from tarTree("$projectDir/bin/prometheus.tar.gz")
from tarTree("$projectDir/bin/prometheus-${prometheus_binary_version}.tar.gz")
into "$projectDir/bin"
}
file("$projectDir/bin").eachDir {
Expand Down

0 comments on commit e929ac5

Please sign in to comment.