2021年3月31日 | Leave a comment - 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' 123456789101112131415161718192021222324252627282930 - 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'