Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Iss1996 - add report failed build job #651

Merged
merged 20 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1753285
Use new GHCR image
jadecarino Jul 25, 2024
07c9d7f
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Jul 25, 2024
66cd37c
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Jul 26, 2024
50d071a
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 1, 2024
e4f2c63
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 5, 2024
bb15c19
Merge
jadecarino Aug 7, 2024
72f7f29
Parameterise main build workflow to support any branch/tag
jadecarino Aug 14, 2024
433de0b
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 14, 2024
fc1ae75
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 14, 2024
c0ed594
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 20, 2024
ca588d0
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 20, 2024
b82f855
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 21, 2024
4bfab96
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 22, 2024
d8a472d
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 28, 2024
6768b25
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Aug 30, 2024
b4b83dd
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Sep 9, 2024
685f476
Disabling gradle cache to avoid build problems
jadecarino Sep 10, 2024
d7c4dd4
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Sep 10, 2024
4800427
Merge branch 'main' of github.com:galasa-dev/framework
jadecarino Sep 25, 2024
444abbe
add report failed build job
jadecarino Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,17 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GALASA_TEAM_GITHUB_TOKEN }}
run: |
gh workflow run build.yaml --repo https://github.com/galasa-dev/extensions --ref ${{ env.BRANCH }} -f jacocoEnabled=${{ inputs.jacocoEnabled }} -f isMainOrRelease=${{ inputs.isMainOrRelease }}
gh workflow run build.yaml --repo https://github.com/galasa-dev/extensions --ref ${{ env.BRANCH }} -f jacocoEnabled=${{ inputs.jacocoEnabled }} -f isMainOrRelease=${{ inputs.isMainOrRelease }}

report-failure:
name: Report failure in workflow
runs-on: ubuntu-latest
needs: [log-github-ref, build-framework, build-rest-api-documentation, trigger-extensions-workflow]
if: failure()

steps:
- name: Report failure in workflow to Slack
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run : |
docker run --rm -v ${{ github.workspace }}:/var/workspace ghcr.io/galasa-dev/galasabld-ibm:main slackpost workflows --repo "framework" --workflowName "${{ github.workflow }}" --workflowRunNum "${{ github.run_id }}" --ref "${{ env.BRANCH }}" --hook "${{ env.SLACK_WEBHOOK }}"