1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
- job: test displayName: 单元测试 dependsOn: dockerimage steps: - task: Maven@3 displayName: 'mvn clean test' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: test jacoco:report options: '-U -Dmaven.test.failure.ignore=true -Duser.timezone=GMT+8 -Duser.region=CN -Duser.language=zh' publishJUnitResults: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePrepare@4 inputs: SonarQube: 'sonar_56' scannerMode: 'Other' extraProperties: 'sonar.projectKey=com.telsafe:std-provider' - task: Maven@3 displayName: 'mvn sonar' inputs: mavenPomFile: 'src/std-provider/pom.xml' goals: sonar:sonar options: '-U' sonarQubeRunAnalysis: true continueOnError: true timeoutInMinutes: 5 - task: SonarQubePublish@4 inputs: pollingTimeoutSec: '300' |
&… Read More