修复触发构建失败

This commit is contained in:
yashin 2018-07-12 18:33:37 +08:00
parent 4e0f23fdaa
commit c28c795570
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ import static com.gitee.jenkins.gitee.api.GiteeClientBuilder.getAllGiteeClientBu
@Extension
public class GiteeConnectionConfig extends GlobalConfiguration {
private Boolean useAuthenticatedEndpoint = false;
private Boolean useAuthenticatedEndpoint = true;
private List<GiteeConnection> connections = new ArrayList<>();
private transient Map<String, GiteeConnection> connectionMap = new HashMap<>();

View File

@ -82,6 +82,7 @@ public abstract class AbstractWebHookTriggerHandler<H extends WebHook> implement
List<URIish> uris = new ArrayList<URIish>();
try {
if (hook.getRepository() != null) {
uris.add(new URIish(hook.getRepository().getUrl()));
uris.add(new URIish(hook.getRepository().getGitHttpUrl()));
uris.add(new URIish(hook.getRepository().getGitSshUrl()));
}
@ -95,7 +96,6 @@ public abstract class AbstractWebHookTriggerHandler<H extends WebHook> implement
}
}
}
return uris.get(0);
} catch (URISyntaxException e) {
LOGGER.log(Level.WARNING, "could not parse URL");
}