azure DevOps pipeline & sonar 集成备忘 - 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' &… Read More
xxl-job 如何获取参数 / 设置处理结果 问题: 如何获取参数 解决: @XxlJob("同步节假日") public void syncHolidayFrom() { String param = XxlJobHelper.getJobParam(); //执行参数 final String msg = "syncHolidayFrom enter.... param:" + param; log.info(msg); XxlJobHelper.log(msg); boolean = dojob(param); if (ok) { XxlJobHelper.handleSuccess(); } else { XxlJobHelper.handleFail(); } } 12345678910111213 @XxlJob("同步节假日") public void syncHolidayFrom() { String param = XxlJobHelper.getJobParam(); //执行参数 final String msg = "syncHolidayFrom enter.... param:" + param; log.info(msg); XxlJobHelper.log(msg); boolean = dojob(param); if (ok) { XxlJobHelper.handleSuccess(); } else { XxlJobHelper.handleFail(); } } … Read More
转: 解决Android无法正常https://dl.google.com/dl/android/maven2/com/的办法 https://blog.csdn.net/XING979020/article/details/883723… Read More