Skip to main content

GitHub Webhook: Organization Folder

Comments

3 comments

  • Imran Malik

    is there a init.groovy code to configure these Github Enterprise settings automatically? 

    0
  • Allan Burdajewicz

    Hello Imran,

    In groovy, you could set the endpoint like the following:

    def githubGlobalConfig = org.jenkinsci.plugins.github_branch_source.GitHubConfiguration.get()
    githubGlobalConfig.get().setEndpoints([
    new org.jenkinsci.plugins.github_branch_source.Endpoint("https://my.github.first.example.com/api/v3", "MyGitHubFirstExample"),
    new org.jenkinsci.plugins.github_branch_source.Endpoint("https://my.github.second.example.com/api/v3", "MyGitHubSecondExample"),
    ])
    githubGlobalConfig.save()

    See org.jenkinsci.plugins.github_branch_source.GitHubConfiguration for more details.

    Regards,

    0
  • Zacky Azoulay

    Hi

    Is there a way to add "Cancel Build on Update" for "github organization" plugin like in" GitHub Pull Request Builder" plugin

    Thanks Zacky

    0

Please sign in to leave a comment.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.