Skip to content

Commit

Permalink
ci(fix): catch canceled jobs (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Dec 4, 2024
1 parent 96649f6 commit f96b918
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ jobs:
needs: [tests-java, tests-frontend] # Restore trivy when/if fixed
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,6 @@ jobs:
if: always()
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"
2 changes: 1 addition & 1 deletion .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ jobs:
if: always()
runs-on: ubuntu-24.04
steps:
- if: contains(needs.*.result, 'canceled|failure')
- if: contains(needs.*.result, 'failure')||contains(needs.*.result, 'canceled')
run: echo "At least one job has failed." && exit 1
- run: echo "Success!"
2 changes: 1 addition & 1 deletion processor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ EXPOSE ${PORT}
HEALTHCHECK CMD curl -f http://localhost:${PORT}/actuator/health | grep '"status":"UP"'

# Startup
ENTRYPOINT ["java", "-jar","/app/nr-forest-client-processor.jar","--spring.profiles.active=container"]
ENTRYPOINT ["java", "-jar", "/app/nr-forest-client-processor.jar", "--spring.profiles.active=container"]

0 comments on commit f96b918

Please sign in to comment.