Skip to content

Commit 0f8ef48

Browse files
committed
Don't fail the build if build scan publishing fails
1 parent cf23888 commit 0f8ef48

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

Diff for: .github/workflows/atlas.yml

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ jobs:
9898
run: ./ci/build-github.sh
9999
shell: bash
100100
- name: Publish Develocity build scan for previous build
101+
# Don't fail a build if publishing fails
102+
continue-on-error: true
101103
if: "${{ !cancelled() && github.event_name == 'pull_request_target' && github.repository == 'hibernate/hibernate-orm' }}"
102104
run: |
103105
./gradlew buildScanPublishPrevious

Diff for: .github/workflows/contributor-build.yml

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ jobs:
106106
run: ./ci/build-github.sh
107107
shell: bash
108108
- name: Publish Develocity build scan for previous build (pull request)
109+
# Don't fail a build if publishing fails
110+
continue-on-error: true
109111
if: "${{ !cancelled() && github.event_name == 'pull_request_target' && github.repository == 'hibernate/hibernate-orm' }}"
110112
run: |
111113
./gradlew buildScanPublishPrevious

Diff for: Jenkinsfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ void ciBuild(buildEnv, String args) {
259259
withCredentials([string(credentialsId: 'ge.hibernate.org-access-key-pr',
260260
variable: 'DEVELOCITY_ACCESS_KEY')]) {
261261
withGradle { // withDevelocity, actually: https://plugins.jenkins.io/gradle/#plugin-content-capturing-build-scans-from-jenkins-pipeline
262-
sh './gradlew buildScanPublishPrevious'
262+
// Don't fail a build if publishing fails
263+
sh './gradlew buildScanPublishPrevious || true'
263264
}
264265
}
265266
})

0 commit comments

Comments
 (0)