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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtendedGitHubClient
getGitHubClient(Job<?,?> job)
static Job
getJob(String jobId)
static org.jenkinsci.plugins.github_branch_source.PullRequestSCMHead
getPullRequest(Job job)
static org.eclipse.egit.github.core.RepositoryId
getRepositoryId(Job<?,?> job)
static Boolean
isAuthorized(Job<?,?> job, String User)
static String
userToLogin(org.eclipse.egit.github.core.User user)
-
-
-
Method Detail
-
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)
-
-