|
|
@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Author: youys
|
|
|
|
* @Author: youys
|
|
|
|
* @Date: 2022/1/18
|
|
|
|
* @Date: 2022/1/18
|
|
|
|
* @Description:
|
|
|
|
* @Description: 查询分析结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class SonarQueryResultRunnable implements Runnable {
|
|
|
|
public class SonarQueryResultRunnable implements Runnable {
|
|
|
|
|
|
|
|
|
|
|
@ -29,13 +29,13 @@ public class SonarQueryResultRunnable implements Runnable {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void run() {
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int count = 0;
|
|
|
|
String status;
|
|
|
|
String status;
|
|
|
|
while((status = dbOperateService.queryCeActivityStatus(projectName)) == null){
|
|
|
|
while((status = dbOperateService.queryCeActivityStatus(projectName)) == null && count++ <=120){
|
|
|
|
|
|
|
|
LOGGER.info("detailId:[{}],sonar还未执行完,次数:{}", detailId, count);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Thread.sleep(1000);
|
|
|
|
Thread.sleep(1000);
|
|
|
|
} catch (InterruptedException e) {}
|
|
|
|
} catch (InterruptedException e) {}
|
|
|
|
LOGGER.info("detailId:[{}],sonar还未执行完", detailId);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 查询
|
|
|
|
// 查询
|
|
|
|
LOGGER.info("detailId:[{}], 查询sonar执行状态[{}]", detailId, status);
|
|
|
|
LOGGER.info("detailId:[{}], 查询sonar执行状态[{}]", detailId, status);
|
|
|
|