水木接口修改
This commit is contained in:
parent
4e5676ce4e
commit
92fa95b91f
@ -1,6 +1,6 @@
|
||||
package cd.casic.ci.process.engine.constant;
|
||||
|
||||
public class ShuiMuConstant {
|
||||
public static final String SHUI_MU_PROJECT_ID_KEY="projectId";
|
||||
public static final String SHUI_MU_PROJECT_ID_KEY="id";
|
||||
public static final String SHUI_MU_FUZZ_MINUTES = "fuzzMinutes";
|
||||
}
|
||||
|
@ -34,10 +34,15 @@ public class ShuiMuWorker extends BaseWorker {
|
||||
ShuiMuProjectResourceResp projectResource = shuiMuService.getProjectResource(projectId);
|
||||
append(context,"当前执行情况:");
|
||||
append(context, JSON.toJSONString(projectResource));
|
||||
if (projectResource.getTestResource()==0) {
|
||||
if (projectResource.getTestResource()+projectResource.getQueueResource()==0) {
|
||||
append(context,"水木模糊测试执行完毕");
|
||||
break;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(1000L);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -207,11 +207,11 @@ public class ShuiMuServiceImpl implements ShuiMuService {
|
||||
public void uploadWfuzzJson(ShuiMuUpdateWFuzzJsonReq req) {
|
||||
ShuiMuProjectInfoResp projectInfo = getProjectInfo(req.getProjectId());
|
||||
String projectName = projectInfo.getName();
|
||||
Map<String,String> restReq = new HashMap<>();
|
||||
Map<String,Object> restReq = new HashMap<>();
|
||||
restReq.put("project",projectName);
|
||||
restReq.put("product",projectInfo.getProduct());
|
||||
restReq.put("language",projectInfo.getLanguage());
|
||||
restReq.put("build",req.getBuild());
|
||||
restReq.put("build",JSON.parseObject(req.getBuild()));
|
||||
String tempDir = System.getProperty("java.io.tmpdir");
|
||||
|
||||
File tempFile = new File(tempDir,"wfuzz.json");
|
||||
|
Loading…
x
Reference in New Issue
Block a user