ALM - GitHub
CI - GitHubActions
command: ./gradlew sonarqube -Dsonar.branch=main
Languages of the repository: Kotlin Gradle
Expected: If there is no project with a specified project key and name, the Gradle command should create a sonarcloud project
Actual: Not able to create a project from GitHub actions, but when I tried the same command locally I was able to create the project.
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check out actions repository
uses: actions/checkout@v2
with:
ref: v0.8.3
repository: org/remote-gh-actions
token: ${{ secrets.org }}
path: ./.github/actions
- name: Setup JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "corretto"
- name: Tests & Coverage
run: |
./gradlew -s test --fail-fast intTest --fail-fast jacocoTestReport
./gradlew sonarqube -Dsonar.branch=main -Dsonar.projectKey=kotlin-springboot -Dsonar.projectName=kotlin-springboot