Class JobHelper
java.lang.Object
org.jenkinsci.plugins.github.pullrequest.utils.JobHelper
- Author:
- Kanstantsin Shautsou
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addComment
(int id, String comment, Run<?, ?> run, TaskListener listener) static org.kohsuke.github.GHCommitState
getCommitState
(Run<?, ?> run, org.kohsuke.github.GHCommitState unstableAs) static List<ParameterValue>
getDefaultParametersValues
(Job<?, ?> job) static org.kohsuke.github.GHIssue
getGhIssue
(Run<?, ?> run) static org.kohsuke.github.GHIssue
getGhPullRequest
(Run<?, ?> run) static org.kohsuke.github.GHRepository
getGhRepositoryFromPRTrigger
(Run<?, ?> run) static List<CauseOfInterruption>
getInterruptCauses
(Executor executor) static Result
getInterruptStatus
(Executor executor) static int
getPRNumberFromPRCause
(Run<?, ?> run) static <T extends Cause>
TghCauseFromRun
(Run<?, ?> run, Class<T> tClass) matrix-project requires special extraction.static GitHubPRCause
ghPRCauseFromRun
(Run<?, ?> run) static GitHubPRTrigger
ghPRTriggerFromJob
(Job<?, ?> job) static GitHubPRTrigger
ghPRTriggerFromRun
(Run<?, ?> run) static boolean
static <T extends Trigger>
TtriggerFrom
(Job<?, ?> job, Class<T> tClass) support matrix plugin.
-
Method Details
-
ghPRTriggerFromRun
-
ghPRTriggerFromJob
-
triggerFrom
support matrix plugin.- See Also:
-
JobInfoHelpers.triggerFrom(hudson.model.Job, java.lang.Class)
-
ghPRCauseFromRun
-
ghCauseFromRun
matrix-project requires special extraction. -
getInterruptStatus
- Throws:
IllegalAccessException
-
getInterruptCauses
public static List<CauseOfInterruption> getInterruptCauses(Executor executor) throws IllegalAccessException - Throws:
IllegalAccessException
-
getDefaultParametersValues
- See Also:
-
ParameterizedJobMixIn.getDefaultParametersValues()
-
rebuild
-
getGhRepositoryFromPRTrigger
public static org.kohsuke.github.GHRepository getGhRepositoryFromPRTrigger(Run<?, ?> run) throws IOException- Throws:
IOException
-
getPRNumberFromPRCause
- Throws:
AbortException
-
getGhIssue
- Throws:
IOException
-
getGhPullRequest
- Throws:
IOException
-
addComment
-
getCommitState
public static org.kohsuke.github.GHCommitState getCommitState(Run<?, ?> run, org.kohsuke.github.GHCommitState unstableAs)
-