Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
brianseeders committed Oct 13, 2023
1 parent a165f66 commit 1106e2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ci/scripts/run-gradle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ $GRADLEW -S --max-workers=$MAX_WORKERS $@

file="build/${BUILDKITE_BUILD_NUMBER}.tar.bz2"
ls -alh build
buildkite-agent artifact search "$file" --step "$BUILDKITE_JOB_ID" --format %u
buildkite-agent artifact search "$file" --step "$BUILDKITE_JOB_ID" --format %i
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ buildScan {
buildScan.server = 'https://gradle-enterprise.elastic.co'
}

background {
// background {
tag OS.current().name()
tag Architecture.current().name()

Expand Down Expand Up @@ -125,14 +125,14 @@ buildScan {
println(uploadFile)

if (uploadFile.exists()) {
println("exists, searching " + ["buildkite-agent", "artifact", "search", uploadFilePath, "--step", System.getenv('BUILDKITE_JOB_ID'), "--format", "%u"].join(" "))
println("exists, searching " + ["buildkite-agent", "artifact", "search", uploadFilePath, "--step", System.getenv('BUILDKITE_JOB_ID'), "--format", "%i"].join(" "))

def process = new ProcessBuilder("buildkite-agent", "artifact", "search", uploadFilePath, "--step", System.getenv('BUILDKITE_JOB_ID'), "--format", "%u").start()
def process = new ProcessBuilder("buildkite-agent", "artifact", "search", uploadFilePath, "--step", System.getenv('BUILDKITE_JOB_ID'), "--format", "%i").start()
process.waitFor()
println("Output: " + process.text)
def artifactUrl = (process.text ?: "").trim()
if (artifactUrl) {
link 'Artifact Upload', artifactUrl
def artifactUuid = (process.text ?: "").trim()
if (artifactUuid) {
link 'Artifact Upload', "https://buildkite.com/organizations/elastic/pipelines/${System.getenv('BUILDKITE_PIPELINE_SLUG')}/builds/${buildNumber}/jobs/${System.getenv('BUILDKITE_JOB_ID')}/artifacts/${artifactUuid}"
}
}

Expand All @@ -153,5 +153,5 @@ buildScan {
} else {
tag 'LOCAL'
}
}
// }
}

0 comments on commit 1106e2c

Please sign in to comment.