Skip to content

Commit

Permalink
Update CI.yml to continue even if failed to upload results to Xray
Browse files Browse the repository at this point in the history
this is relevant because PRs wont resolved the GH secrets and thus the GH workflow will fail
  • Loading branch information
bitcoder authored Jun 11, 2024
1 parent 272cd5e commit e4efeef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)
run: mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectKey=Xray-App_xray-maven-plugin -Dsonar.organization=xray-app -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco-merged-test-coverage-report/jacoco.xml
- name: Push results to Xray Cloud
continue-on-error: true
env:
XRAYCLOUD_CLIENT_ID: ${{ secrets.XRAYCLOUD_CLIENT_ID }}
XRAYCLOUD_CLIENT_SECRET: ${{ secrets.XRAYCLOUD_CLIENT_SECRET }}
Expand Down

0 comments on commit e4efeef

Please sign in to comment.