Skip to content

Commit

Permalink
P4PADEV-244 update code-review-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Giuseppe-LaManna committed May 3, 2024
1 parent cb903f9 commit c8e06ab
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .devops/code-review-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,32 @@ steps:
sonar.projectName=$(SONARCLOUD_PROJECT_NAME)
sonar.exclusions='**/enums/**, **/model/**, **/dto/**, **/*Constant*, **/*Config.java, **/*Scheduler.java, **/*Application.java, **/src/test/**, **/Dummy*.java'
- task: Gradle@3
inputs:
workingDirectory: './'
gradleWrapperFile: './gradlew'
tasks: 'clean build jacocoTestReport'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
sonarQubeRunAnalysis: false

- bash: xmlReportPaths=$(find "$(pwd)" -path '*jacoco.xml' | sed 's/.*/&/' | tr '\n' ','); echo "##vso[task.setvariable variable=xmlReportPaths]$xmlReportPaths"
displayName: finding jacoco.xml

- task: Gradle@3
inputs:
workingDirectory: './'
gradleWrapperFile: './gradlew'
tasks: "sonar"
options: '-Dsonar.coverage.jacoco.xmlReportPaths=$(xmlReportPaths) -Dorg.gradle.jvmargs=-Xmx4096M'
publishJUnitResults: false
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.17'
sonarQubeRunAnalysis: false
sqGradlePluginVersionChoice: 'build'

- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '300'

0 comments on commit c8e06ab

Please sign in to comment.