private boolean createJenkinsHook(GHRepository repo, URL url) {
try {
repo.createHook("jenkins", Collections.singletonMap("jenkins_hook_url", url.toExternalForm()), null, true);
return true;
} catch (IOException e) {
throw new GHException("Failed to update jenkins hooks", e);
}
}