Interface GitApi
-
- All Known Implementing Classes:
TuleapApiClient
public interface GitApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<GitBranch>getBranches(String repositoryId, TuleapAccessToken token)GitCommitgetCommit(String repositoryId, String commitReference, TuleapAccessToken token)GitFileContentgetFileContent(String repositoryId, String path, String commitReference, TuleapAccessToken token)List<GitPullRequest>getPullRequests(String repositoryId, TuleapAccessToken token)List<GitTreeContent>getTree(String repositoryId, String commitReference, String path, TuleapAccessToken token)voidsendBuildStatus(String repositoryId, String commitReference, TuleapBuildStatus status, TuleapAccessToken token)voidsendBuildStatus(String repositoryId, String commitReference, TuleapBuildStatus status, org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
-
-
-
Field Detail
-
GIT_API
static final String GIT_API
- See Also:
- Constant Field Values
-
STATUSES
static final String STATUSES
- See Also:
- Constant Field Values
-
COMMITS
static final String COMMITS
- See Also:
- Constant Field Values
-
TREE
static final String TREE
- See Also:
- Constant Field Values
-
FILES
static final String FILES
- See Also:
- Constant Field Values
-
PULL_REQUEST
static final String PULL_REQUEST
- See Also:
- Constant Field Values
-
BRANCHES
static final String BRANCHES
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendBuildStatus
void sendBuildStatus(String repositoryId, String commitReference, TuleapBuildStatus status, org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
-
sendBuildStatus
void sendBuildStatus(String repositoryId, String commitReference, TuleapBuildStatus status, TuleapAccessToken token)
-
getCommit
GitCommit getCommit(String repositoryId, String commitReference, TuleapAccessToken token)
-
getTree
List<GitTreeContent> getTree(String repositoryId, String commitReference, String path, TuleapAccessToken token) throws TreeNotFoundException
- Throws:
TreeNotFoundException
-
getFileContent
GitFileContent getFileContent(String repositoryId, String path, String commitReference, TuleapAccessToken token) throws FileContentNotFoundException
- Throws:
FileContentNotFoundException
-
getPullRequests
List<GitPullRequest> getPullRequests(String repositoryId, TuleapAccessToken token)
-
getBranches
List<GitBranch> getBranches(String repositoryId, TuleapAccessToken token)
-
-