Skip to content

Commit

Permalink
Add workflow step that shows build scan url (#11088)
Browse files Browse the repository at this point in the history
Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
laurit and trask authored Apr 11, 2024
1 parent 2722582 commit 4c77b48
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ jobs:
# gradle enterprise is used for the build cache
gradle-home-cache-excludes: caches/build-cache-1

- name: Build scan
if: ${{ hashFiles('build-scan.txt') != '' }}
run: cat build-scan.txt

- name: Upload deadlock detector artifacts if any
if: failure()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reusable-test-indy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ jobs:
cache-read-only: ${{ inputs.cache-read-only }}
# gradle enterprise is used for the build cache
gradle-home-cache-excludes: caches/build-cache-1

- name: Build scan
if: ${{ hashFiles('build-scan.txt') != '' }}
run: cat build-scan.txt
4 changes: 4 additions & 0 deletions .github/workflows/reusable-test-latest-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ jobs:
# gradle enterprise is used for the build cache
gradle-home-cache-excludes: caches/build-cache-1

- name: Build scan
if: ${{ hashFiles('build-scan.txt') != '' }}
run: cat build-scan.txt

- name: Upload deadlock detector artifacts if any
if: failure()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
Expand Down
12 changes: 12 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ if (useScansGradleCom) {
capture {
fileFingerprints = true
}

buildScanPublished {
File("build-scan.txt").printWriter().use { writer ->
writer.println(buildScanUri)
}
}
}
}
} else {
Expand All @@ -65,6 +71,12 @@ if (useScansGradleCom) {
gradle.startParameter.projectProperties["smokeTestSuite"]?.let {
value("Smoke test suite", it)
}

buildScanPublished {
File("build-scan.txt").printWriter().use { writer ->
writer.println(buildScanUri)
}
}
}
}

Expand Down

0 comments on commit 4c77b48

Please sign in to comment.