public class StashClient
extends java.lang.Object
Constructor and Description |
---|
StashClient(java.lang.String stashUrl,
com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
int |
postPullRequestComment(BuildInfo buildInfo,
java.lang.String message)
Post comment on pull request in stash
|
int |
postPullRequestComment(BuildInfo buildInfo,
java.lang.String message,
java.lang.String path)
Post comment on file on pull request in stash
|
int |
postPullRequestComment(BuildInfo buildInfo,
java.lang.String message,
java.lang.String path,
java.lang.Integer lineNumber)
Post comment in file on pull request in stash
|
int |
postTask(java.lang.String message,
int commentId)
Post task on a existing comment
|
public StashClient(java.lang.String stashUrl, com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials credentials)
public int postPullRequestComment(BuildInfo buildInfo, java.lang.String message) throws java.io.IOException
buildInfo
- message
- java.io.IOException
public int postPullRequestComment(BuildInfo buildInfo, java.lang.String message, java.lang.String path) throws java.io.IOException
buildInfo
- message
- path
- java.io.IOException
public int postPullRequestComment(BuildInfo buildInfo, java.lang.String message, java.lang.String path, java.lang.Integer lineNumber) throws java.io.IOException
buildInfo
- message
- path
- lineNumber
- java.io.IOException
public int postTask(java.lang.String message, int commentId) throws java.io.IOException
message
- task messagecommentId
- comment idjava.io.IOException