Authored by qinchao

githookdocker

... ... @@ -3,13 +3,10 @@ package com.ui.ctrl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Sets;
import com.ui.contants.HttpUriContants;
import com.ui.http.HttpRestClient;
import com.ui.model.BaseResponse;
import com.ui.model.MonitAlarmInfo;
import com.ui.model.WebHooksReleaseBO;
import com.ui.model.req.ZkDetailReq;
import com.ui.model.req.ZkTreeReq;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.slf4j.Logger;
... ... @@ -19,9 +16,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import java.io.IOException;
import java.util.*;
/**
... ... @@ -97,7 +92,7 @@ public class OuterIntfCtrl {
public BaseResponse gitWebHook(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) throws Exception {
log.info("gitWebHookAppCollectLog get the webhook from git begin --{}", jsonObject.toJSONString());
WebHooksReleaseBO bo=releaseWebHooksNoCommits(jsonObject);
return new BaseResponse(200, "succeed", "本次的jenkinsJOB_ID = " + nextNumber);
return new BaseResponse(200, "succeed", "本次的jenkinsJOB_ID = ");
}
private WebHooksReleaseBO releaseWebHooksNoCommits(JSONObject jsonObject) {
... ...