|
|
@@ -69,7 +69,7 @@ public class JavaImageBuildHandler extends AbstractHandler {
|
|
|
//注:temp文件/目录系统会定时删,实际文件名喂 prefix + 它生成的suffix随机数,所以不会命名冲突
|
|
|
directory = Files.createTempDirectory("seecoder-devcloud-");
|
|
|
UriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(repoUrl);
|
|
|
- repoUrl = builder.scheme("http").host(applicationProperties.getGitlab().getHost().replace("http://","")).path(".git/").toUriString();
|
|
|
+ repoUrl = builder.scheme("http").host(applicationProperties.getGitlab().getUrl().replace("http://","")).path(".git/").toUriString();
|
|
|
Git git = gitApi.clone(repoUrl, directory.toString());
|
|
|
git.checkout().setCreateBranch(false).setStartPoint("origin/" + branchName).setName("origin/" + branchName).call();
|
|
|
} catch (Exception e) {
|