修复触发构建失败
This commit is contained in:
parent
4e0f23fdaa
commit
c28c795570
|
@ -39,7 +39,7 @@ import static com.gitee.jenkins.gitee.api.GiteeClientBuilder.getAllGiteeClientBu
|
||||||
@Extension
|
@Extension
|
||||||
public class GiteeConnectionConfig extends GlobalConfiguration {
|
public class GiteeConnectionConfig extends GlobalConfiguration {
|
||||||
|
|
||||||
private Boolean useAuthenticatedEndpoint = false;
|
private Boolean useAuthenticatedEndpoint = true;
|
||||||
private List<GiteeConnection> connections = new ArrayList<>();
|
private List<GiteeConnection> connections = new ArrayList<>();
|
||||||
private transient Map<String, GiteeConnection> connectionMap = new HashMap<>();
|
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>();
|
List<URIish> uris = new ArrayList<URIish>();
|
||||||
try {
|
try {
|
||||||
if (hook.getRepository() != null) {
|
if (hook.getRepository() != null) {
|
||||||
|
uris.add(new URIish(hook.getRepository().getUrl()));
|
||||||
uris.add(new URIish(hook.getRepository().getGitHttpUrl()));
|
uris.add(new URIish(hook.getRepository().getGitHttpUrl()));
|
||||||
uris.add(new URIish(hook.getRepository().getGitSshUrl()));
|
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) {
|
} catch (URISyntaxException e) {
|
||||||
LOGGER.log(Level.WARNING, "could not parse URL");
|
LOGGER.log(Level.WARNING, "could not parse URL");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue