Skip to content

Commit

Permalink
Enhace CI/CD pipeline
Browse files Browse the repository at this point in the history
 * Use `AntonOellerer` user for publishing
 * Wait for sonarqube quality gate check
 * Set file retention to 5 days
  • Loading branch information
AntonOellerer committed Dec 9, 2021
1 parent 928b72b commit 2dd7bf4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

env:
GITHUB_USERNAME: codecitizen
GITHUB_USERNAME: AntonOellerer

jobs:
owasp:
Expand All @@ -35,6 +35,7 @@ jobs:
with:
name: owasp-results
path: build/reports/dependency-check-report.html
retention-days: 5
checkstyle:
name: checkstyle
runs-on: ubuntu-latest
Expand All @@ -58,6 +59,7 @@ jobs:
with:
name: checkstyle-results
path: build/reports/checkstyle.html
retention-days: 5
tests:
name: tests
runs-on: ubuntu-latest
Expand All @@ -81,6 +83,7 @@ jobs:
with:
name: test-results
path: build/reports/tests/test
retention-days: 5
sonarcloud:
name: sonarcloud
runs-on: ubuntu-20.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags:
- "v*"
env:
GITHUB_USERNAME: codecitizen
GITHUB_USERNAME: AntonOellerer

jobs:
gradle-publish:
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ sonarqube {
property "sonar.language", "java"
property "sonar.java.binaries", "."
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.qualitygate.wait", "true"
property "sonar.qualitygate.timeout", "180"
}
}

Expand Down

0 comments on commit 2dd7bf4

Please sign in to comment.