public class GithubNotificationConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected org.kohsuke.github.GitHubBuilder |
githubBuilder |
Constructor and Description |
---|
GithubNotificationConfig() |
Modifier and Type | Method and Description |
---|---|
static GithubNotificationConfig |
fromRun(hudson.model.Run<?,?> run)
Constructs a config object from a Run object.
|
static GithubNotificationConfig |
fromRun(hudson.model.Run<?,?> run,
org.kohsuke.github.GitHubBuilder githubBuilder)
Constructs a config object from a
Run object and GitHub builder. |
String |
getBranchName()
Gets the name of the branch for the build.
|
org.kohsuke.github.GHRepository |
getRepo()
Gets the GitHub repo for the build.
|
String |
getRepoName()
Gets the name of the repo for the build.
|
String |
getRepoOwner()
Gets the repo owner.
|
String |
getShaString()
Gets the SHA for the build
|
public String getShaString()
public String getRepoOwner()
public String getBranchName()
public org.kohsuke.github.GHRepository getRepo()
public String getRepoName()
@Nullable public static GithubNotificationConfig fromRun(hudson.model.Run<?,?> run)
run
- the build@Nullable public static GithubNotificationConfig fromRun(hudson.model.Run<?,?> run, org.kohsuke.github.GitHubBuilder githubBuilder)
Run
object and GitHub builder.run
- the buildgithubBuilder
- the GitHub builderCopyright © 2016–2020. All rights reserved.