Skip to content

Commit d71dab4

Browse files
authored
Add workflow step that shows build scan link (#2195)
1 parent 83550c8 commit d71dab4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/build-common.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ jobs:
102102
"-PmaxTestRetries=${{ inputs.max-test-retries }}"
103103
${{ inputs.no-build-cache && '--no-build-cache' || '' }}
104104
105+
- name: Build scan
106+
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
107+
run: cat build-scan.txt
108+
105109
integration-test:
106110
runs-on: ubuntu-latest
107111
steps:
@@ -121,6 +125,10 @@ jobs:
121125
- name: Integration test
122126
run: ./gradlew integrationTest "-PmaxTestRetries=${{ inputs.max-test-retries }}" ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
123127

128+
- name: Build scan
129+
if: ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
130+
run: cat build-scan.txt
131+
124132
- name: Save integration test results
125133
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
126134
if: always()

settings.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ develocity {
2929
publishing.onlyIf { System.getenv("CI") != null }
3030
termsOfUseUrl.set("https://gradle.com/help/legal-terms-of-use")
3131
termsOfUseAgree.set("yes")
32+
33+
buildScanPublished {
34+
File("build-scan.txt").printWriter().use { writer ->
35+
writer.println(buildScanUri)
36+
}
37+
}
3238
}
3339
}
3440

0 commit comments

Comments
 (0)