Package org.kohsuke.github

Examples of org.kohsuke.github.GHException


                if (h.getName().equals("jenkins") && h.getConfig().get("jenkins_hook_url").equals(urlExternalForm)) {
                    h.delete();
                }
            }
        } catch (IOException e) {
            throw new GHException("Failed to update post-commit hooks", e);
        }
    }
View Full Code Here


    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);
        }
    }
View Full Code Here

TOP

Related Classes of org.kohsuke.github.GHException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.