修复触发构建失败
This commit is contained in:
parent
4e0f23fdaa
commit
c28c795570
|
@ -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<>();
|
||||
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue