Template for a good new topic, formatted with Markdown:
- ALM used : Github
- CI system used : Jenkins
- Languages of the repository : Java
- Error observed :
Run actions/setup-java@v1
[9]**/usr/bin/tar --version
[10]**tar (GNU tar) 1.30
[11]**Copyright (C) 2017 Free Software Foundation, Inc.
[12]**License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
[13]**This is free software: you are free to change and redistribute it.
[14]**There is NO WARRANTY, to the extent permitted by law.
**
[17]/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/actions-runner/_work/_temp/temp_1119204860 -f /home/runner/actions-runner/_work/_temp/94398c91-290d-49b7-be90-0a394eac4eb7
[18]creating settings.xml with server-id: github; environment variables: username=$GITHUB_ACTOR, *** and gpg-passphrase=null
[19]overwriting existing file /home/runner/.m2/settings.xml
[20]Error: EROFS: read-only file system, open '/home/runner/.m2/settings.xml'
- Here is my build.yml
name: BuildSonar
on:
push:
branches:
- develop
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: BuildSonar
runs-on: myRunner
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey="myProject"
Hello guys,
I really can’t figure why it doesn’t build and i didn’t find any similar issue.
Thank you for your help.