diff --git a/.github/actions/send-notification/action.yml b/.github/actions/send-notification/action.yml index 4259f845..d5d0c031 100644 --- a/.github/actions/send-notification/action.yml +++ b/.github/actions/send-notification/action.yml @@ -4,6 +4,9 @@ inputs: branch: description: 'The branch on which the failure occured' required: true + build-scan-url: + description: 'The URL of the build scan for the failure' + required: true owner-ids: description: 'IDs of the owners to notify' required: true @@ -18,4 +21,4 @@ runs: steps: - shell: bash run: | - curl -s -o /dev/null -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d "{ text: \"${{ inputs.owner-ids }} ${{ inputs.task }} <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|failed> on ${{ inputs.branch }} \"}" || true + curl -s -o /dev/null -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d "{ text: \"${{ inputs.owner-ids }} ${{ inputs.task }} <${{ inputs.build-scan-url }}|failed> on ${{ inputs.branch }} \"}" || true diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 6fd26d42..e7d8d424 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -52,6 +52,7 @@ jobs: mkdir -p ~/.gradle echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties - name: Build + id: build env: GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }} GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} @@ -82,3 +83,4 @@ jobs: task: ${{ inputs.project }}:${{ inputs.task }} owner-ids: ${{ secrets[env.SECRET_NAME_OWNER_IDS_PROJECT] || secrets[env.SECRET_NAME_OWNER_IDS_GROUP]}} branch: ${{ inputs.checkout_ref }} + build-scan-url: ${{ steps.build.outputs.build-scan-url }} diff --git a/gradle/plugins/aot-smoke-test-ci-plugin/src/main/resources/smoke-test.yml b/gradle/plugins/aot-smoke-test-ci-plugin/src/main/resources/smoke-test.yml index 6fd26d42..e7d8d424 100644 --- a/gradle/plugins/aot-smoke-test-ci-plugin/src/main/resources/smoke-test.yml +++ b/gradle/plugins/aot-smoke-test-ci-plugin/src/main/resources/smoke-test.yml @@ -52,6 +52,7 @@ jobs: mkdir -p ~/.gradle echo 'systemProp.user.name=spring-builds+github' >> ~/.gradle/gradle.properties - name: Build + id: build env: GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }} GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} @@ -82,3 +83,4 @@ jobs: task: ${{ inputs.project }}:${{ inputs.task }} owner-ids: ${{ secrets[env.SECRET_NAME_OWNER_IDS_PROJECT] || secrets[env.SECRET_NAME_OWNER_IDS_GROUP]}} branch: ${{ inputs.checkout_ref }} + build-scan-url: ${{ steps.build.outputs.build-scan-url }}