alter package name
This commit is contained in:
parent
9fddbb8158
commit
26da34703c
|
@ -99,11 +99,9 @@ public class Job extends BaseModel {
|
||||||
*/
|
*/
|
||||||
public QueueReference build(Map<String, String> params) throws IOException {
|
public QueueReference build(Map<String, String> params) throws IOException {
|
||||||
String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&");
|
String qs = join(Collections2.transform(params.entrySet(), new MapEntryToQueryStringPair()), "&");
|
||||||
<<<<<<< HEAD
|
|
||||||
// client.post(url + "buildWithParameters?" + qs);
|
// client.post(url + "buildWithParameters?" + qs);
|
||||||
=======
|
|
||||||
// client.post(url + "buildWithParameters?" + qs);
|
|
||||||
>>>>>>> bc119ee10fc482fee999d72df1c4031006926ba9
|
|
||||||
ExtractHeader location = client.post(url + "buildWithParameters?" + qs, null, ExtractHeader.class, false);
|
ExtractHeader location = client.post(url + "buildWithParameters?" + qs, null, ExtractHeader.class, false);
|
||||||
return new QueueReference(location.getLocation());
|
return new QueueReference(location.getLocation());
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package cn.guange.app.jenkins.api;
|
package com.educoder.jenkins.api;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.settings.AppConfig;
|
|
||||||
import cn.guange.app.jenkins.utils.StringUtil;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.educoder.jenkins.settings.AppConfig;
|
||||||
|
import com.educoder.jenkins.utils.StringUtil;
|
||||||
import com.offbytwo.jenkins.JenkinsServer;
|
import com.offbytwo.jenkins.JenkinsServer;
|
||||||
import com.offbytwo.jenkins.model.JobWithDetails;
|
import com.offbytwo.jenkins.model.JobWithDetails;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
|
@ -1,9 +1,10 @@
|
||||||
package cn.guange.app.jenkins.api;
|
package com.educoder.jenkins.api;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.settings.AppConfig;
|
|
||||||
import cn.guange.app.jenkins.utils.Base64Helper;
|
|
||||||
import cn.guange.app.jenkins.utils.HttpHelper;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.educoder.jenkins.settings.AppConfig;
|
||||||
|
import com.educoder.jenkins.utils.Base64Helper;
|
||||||
|
import com.educoder.jenkins.utils.HttpHelper;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.controller;
|
package com.educoder.jenkins.controller;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
package cn.guange.app.jenkins.controller;
|
package com.educoder.jenkins.controller;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.api.JenkinsApi;
|
|
||||||
import cn.guange.app.jenkins.utils.Base64Helper;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.educoder.jenkins.api.JenkinsApi;
|
||||||
|
import com.educoder.jenkins.utils.Base64Helper;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
|
@ -1,7 +1,8 @@
|
||||||
package cn.guange.app.jenkins.controller;
|
package com.educoder.jenkins.controller;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.api.TrustieApi;
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.educoder.jenkins.api.TrustieApi;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.settings;
|
package com.educoder.jenkins.settings;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
|
@ -8,7 +8,7 @@
|
||||||
* 修改时间: 2017年3月17日
|
* 修改时间: 2017年3月17日
|
||||||
* 修改内容: <修改内容>
|
* 修改内容: <修改内容>
|
||||||
*/
|
*/
|
||||||
package cn.lili.test;
|
package com.educoder.jenkins.test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @author liliy 版本 : <版本> 修改时间: 2017年3月16日 修改内容: <修改内容>
|
* @author liliy 版本 : <版本> 修改时间: 2017年3月16日 修改内容: <修改内容>
|
||||||
*/
|
*/
|
||||||
package cn.lili.test;
|
package com.educoder.jenkins.test;
|
||||||
|
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.lili.test;
|
package com.educoder.jenkins.test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
* 修改时间: 2017年3月24日
|
* 修改时间: 2017年3月24日
|
||||||
* 修改内容: <修改内容>
|
* 修改内容: <修改内容>
|
||||||
*/
|
*/
|
||||||
package cn.lili.test;
|
package com.educoder.jenkins.test;
|
||||||
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.utils;
|
package com.educoder.jenkins.utils;
|
||||||
|
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.utils;
|
package com.educoder.jenkins.utils;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.utils;
|
package com.educoder.jenkins.utils;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package cn.guange.app.jenkins.utils;
|
package com.educoder.jenkins.utils;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringEscapeUtils;
|
import org.apache.commons.lang.StringEscapeUtils;
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package cn.guange.app.jenkins.api;
|
package cn.guange.app.jenkins.api;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.SpringTestBase;
|
import cn.guange.app.jenkins.SpringTestBase;
|
||||||
import cn.guange.app.jenkins.settings.AppConfig;
|
|
||||||
import cn.wangwei.app.jenkins.ReadFileUtil;
|
import cn.wangwei.app.jenkins.ReadFileUtil;
|
||||||
|
|
||||||
|
import com.educoder.jenkins.api.JenkinsApi;
|
||||||
|
import com.educoder.jenkins.settings.AppConfig;
|
||||||
import com.offbytwo.jenkins.JenkinsServer;
|
import com.offbytwo.jenkins.JenkinsServer;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
package cn.guange.app.jenkins.api;
|
package cn.guange.app.jenkins.api;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.educoder.jenkins.api.TrustieApi;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
|
@ -3,6 +3,8 @@ package cn.guange.app.jenkins.utils;
|
||||||
import junit.framework.Assert;
|
import junit.framework.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import com.educoder.jenkins.utils.StringUtil;
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
package cn.wangwei.app.jenkins;
|
package cn.wangwei.app.jenkins;
|
||||||
|
|
||||||
import cn.guange.app.jenkins.SpringTestBase;
|
import cn.guange.app.jenkins.SpringTestBase;
|
||||||
import cn.guange.app.jenkins.api.JenkinsApi;
|
|
||||||
import cn.guange.app.jenkins.settings.AppConfig;
|
import com.educoder.jenkins.api.JenkinsApi;
|
||||||
|
import com.educoder.jenkins.settings.AppConfig;
|
||||||
import com.offbytwo.jenkins.JenkinsServer;
|
import com.offbytwo.jenkins.JenkinsServer;
|
||||||
import com.offbytwo.jenkins.model.Build;
|
import com.offbytwo.jenkins.model.Build;
|
||||||
import com.offbytwo.jenkins.model.BuildWithDetails;
|
import com.offbytwo.jenkins.model.BuildWithDetails;
|
||||||
import com.offbytwo.jenkins.model.Job;
|
import com.offbytwo.jenkins.model.Job;
|
||||||
import com.offbytwo.jenkins.model.JobWithDetails;
|
import com.offbytwo.jenkins.model.JobWithDetails;
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
>>>>>>> bc119ee10fc482fee999d72df1c4031006926ba9
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
@ -28,11 +28,7 @@ import java.util.Map;
|
||||||
|
|
||||||
class JenkinsTest extends SpringTestBase {
|
class JenkinsTest extends SpringTestBase {
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
public static void main(String[] args) throws FileNotFoundException {
|
|
||||||
System.setIn(new FileInputStream("ddd"));
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
@Autowired
|
@Autowired
|
||||||
AppConfig appConfig;
|
AppConfig appConfig;
|
||||||
|
|
||||||
|
@ -135,5 +131,5 @@ class JenkinsTest extends SpringTestBase {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>>>>>>> bc119ee10fc482fee999d72df1c4031006926ba9
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue