Class GitHubHelper

java.lang.Object
org.jenkinsci.plugins.pipeline.github.GitHubHelper

public class GitHubHelper extends Object
Various utility methods to obtain clients, repos and pull request scm heads from Jobs
Author:
Aaron Whiteside
  • Method Details

    • isAuthorized

      public static Boolean isAuthorized(@NonNull Job<?,?> job, @NonNull String User)
    • getGitHubClient

      public static ExtendedGitHubClient getGitHubClient(@NonNull Job<?,?> job)
    • getRepositoryId

      public static org.eclipse.egit.github.core.RepositoryId getRepositoryId(@NonNull Job<?,?> job)
    • getPullRequest

      public static org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead getPullRequest(@NonNull Job job) throws Exception
      Throws:
      Exception
    • userToLogin

      public static String userToLogin(org.eclipse.egit.github.core.User user)
    • getJob

      public static Job getJob(String jobId)