mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 16:51:37 +00:00
Publish SonarQube analysis from Azure CI
This commit is contained in:
+14
-2
@@ -11,23 +11,35 @@ steps:
|
|||||||
path: $(GRADLE_USER_HOME)
|
path: $(GRADLE_USER_HOME)
|
||||||
displayName: "Gradle: setup build cache"
|
displayName: "Gradle: setup build cache"
|
||||||
|
|
||||||
|
- task: SonarCloudPrepare@1
|
||||||
|
inputs:
|
||||||
|
SonarCloud: 'apollo-rsps-sonarcloud'
|
||||||
|
organization: 'apollo-rsps'
|
||||||
|
scannerMode: 'Other'
|
||||||
|
displayName: "SonarCloud: prepare analysis"
|
||||||
|
|
||||||
- task: Gradle@2
|
- task: Gradle@2
|
||||||
displayName: "Gradle: build"
|
displayName: "Gradle: build"
|
||||||
inputs:
|
inputs:
|
||||||
workingDirectory: ''
|
workingDirectory: ''
|
||||||
gradleWrapperFile: 'gradlew'
|
gradleWrapperFile: 'gradlew'
|
||||||
gradleOptions: '-Xmx3072m -Dorg.gradle.parallel=true -Dorg.gradle.caching=true'
|
gradleOptions: '-Xmx3072m -Dorg.gradle.parallel=true -Dorg.gradle.caching=true -Dsonar.host.url=https://sonarcloud.io'
|
||||||
javaHomeOption: 'JDKVersion'
|
javaHomeOption: 'JDKVersion'
|
||||||
jdkVersionOption: '1.8'
|
jdkVersionOption: '1.8'
|
||||||
jdkArchitectureOption: 'x64'
|
jdkArchitectureOption: 'x64'
|
||||||
publishJUnitResults: true
|
publishJUnitResults: true
|
||||||
testResultsFiles: '**/TEST-*.xml'
|
testResultsFiles: '**/TEST-*.xml'
|
||||||
tasks: 'check jacocoTestReport'
|
tasks: 'check jacocoTestReport sonarqube'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
./gradlew --stop
|
./gradlew --stop
|
||||||
displayName: "Gradle: stop daemon"
|
displayName: "Gradle: stop daemon"
|
||||||
|
|
||||||
|
- task: SonarCloudPublish@1
|
||||||
|
inputs:
|
||||||
|
pollingTimeoutSec: '300'
|
||||||
|
displayName: "SonarCloud: publish quality gate"
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}"
|
bash <(curl -s https://codecov.io/bash) -t "${CODECOV_TOKEN}"
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user