File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3030 path : ~/.m2
3131 key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
3232 restore-keys : ${{ runner.os }}-m2
33+ - name : Create custom Maven Settings.xml
34+ uses : whelk-io/maven-settings-xml-action@v18
35+ with :
36+ output_file : custom_maven_settings.xml
37+ servers : ' [{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]'
3338 - name : Build and analyze
3439 env :
3540 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3641 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
37- run : mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=com-pas_compas-sct -Dsonar.organization=com-pas -Dsonar.host.url=https://sonarcloud.io
42+ run : |
43+ ./mvnw -B -s custom_maven_settings.xml \
44+ -Dsonar.projectKey=com-pas_compas-sct \
45+ -Dsonar.organization=com-pas \
46+ -Dsonar.host.url=https://sonarcloud.io \
47+ verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
You can’t perform that action at this time.
0 commit comments