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