I wrote yaml like below :
name: Kompas Sonarqube
on:
push:
branches:
- POC/60822/main-sonarqube # or the name of your main branch
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.1
- name: Cache SonarQube packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
run: ./gradlew build sonarqube --info
I tried to push it and run this yml. But I got problems affter long time like this :
2022-11-19T22:29:22.7140119Z AAPT2 aapt2-7.1.3-7984345-linux Daemon #3: shutdown
2022-11-19T22:29:22.7141232Z ----- End of the daemon log -----
2022-11-19T22:29:22.7141576Z
2022-11-19T22:29:22.9731845Z
2022-11-19T22:29:22.9732481Z FAILURE: Build failed with an exception.
2022-11-19T22:29:22.9732747Z
2022-11-19T22:29:22.9732867Z * What went wrong:
2022-11-19T22:29:22.9733408Z Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
2022-11-19T22:29:22.9733710Z
2022-11-19T22:29:22.9733804Z * Try:
2022-11-19T22:29:22.9734612Z Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
2022-11-19T22:29:22.9735241Z
2022-11-19T22:29:22.9737129Z * Get more help at https://help.gradle.org
2022-11-19T22:29:23.1470262Z ##[error]Process completed with exit code 1.
How to solve this because i already set daemon to false and already run manually in my pc still got this in github action?
Note:
this log to help me analyze it
logs_3566.zip (3.4 MB)