public class StashRepository extends Object
| Constructor and Description |
|---|
StashRepository(Job<?,?> job,
StashBuildTrigger trigger,
StashApiClient client) |
public StashRepository(@Nonnull Job<?,?> job, @Nonnull StashBuildTrigger trigger, StashApiClient client)
public Collection<StashPullRequestResponseValue> getTargetPullRequests()
public String postBuildStartCommentTo(StashPullRequestResponseValue pullRequest) throws StashApiClient.StashApiException
pullRequest - pull requestStashApiClient.StashApiException - if posting the comment failspublic static AbstractMap.SimpleEntry<String,String> getParameter(String content)
public Map<String,String> getAdditionalParameters(StashPullRequestResponseValue pullRequest) throws StashApiClient.StashApiException
StashApiClient.StashApiExceptionpublic Queue.Item startJob(StashCause cause)
public void addFutureBuildTasks(Collection<StashPullRequestResponseValue> pullRequests)
public void deletePullRequestComment(String pullRequestId, String commentId) throws StashApiClient.StashApiException
pullRequestId - pull request IDcommentId - comment to be deletedStashApiClient.StashApiException - if deleting the comment failspublic void postFinishedComment(String pullRequestId, String sourceCommit, String destinationCommit, Result buildResult, String buildUrl, int buildNumber, String additionalComment, String duration)
public boolean mergePullRequest(String pullRequestId, String version) throws StashApiClient.StashApiException
pullRequestId - pull request IDversion - pull request versionStashApiClient.StashApiException - if cannot communicate to the serverpublic void pollRepository()
Copyright © 2016–2019. All rights reserved.