public abstract class IssueCreator extends Object
| Constructor and Description |
|---|
IssueCreator() |
| Modifier and Type | Method and Description |
|---|---|
static org.kohsuke.github.GHIssue |
createIssue(hudson.model.Run<?,?> run,
GitHubIssueNotifier jobConfig,
org.kohsuke.github.GHRepository repo,
hudson.model.TaskListener listener,
hudson.FilePath workspace)
Creates a GitHub issue for a failing build
|
static String |
formatText(String text,
hudson.model.Run<?,?> run,
hudson.model.TaskListener listener,
hudson.FilePath workspace)
Formats text for a GitHub issue, replacing placeholders like {NAME} and {URL}.
|
public static String formatText(String text, hudson.model.Run<?,?> run, hudson.model.TaskListener listener, hudson.FilePath workspace) throws IOException
text - Text to formatrun - The build runlistener - Build listenerworkspace - Build workspaceIOException - when an unexpected problem occurspublic static org.kohsuke.github.GHIssue createIssue(hudson.model.Run<?,?> run,
GitHubIssueNotifier jobConfig,
org.kohsuke.github.GHRepository repo,
hudson.model.TaskListener listener,
hudson.FilePath workspace)
throws IOException
run - Build that failedjobConfig - the job config of the GitHubIssueNotifierrepo - Repository to create the issue inlistener - Build listenerworkspace - Build workspaceIOException - when an unexpected problem occursCopyright © 2016–2017. All rights reserved.