Package io.jenkins.blueocean.rest.model
Class BlueChangeSetEntry
java.lang.Object
io.jenkins.blueocean.rest.model.Resource
io.jenkins.blueocean.rest.model.BlueChangeSetEntry
- All Implemented Interfaces:
Reachable
Represents a single commit as a REST resource.
- Author:
- Ivan Meredith
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<String>
Returns a set of paths in the workspace that was affected by this change.abstract BlueUser
The user who made this change.abstract Integer
abstract String
Returns a human readable display name of the commit number, revision number, and such thing that identifies this entry.abstract Collection<BlueIssue>
abstract String
getMsg()
Gets the "commit message".abstract String
Returns the timestamp of this commit.abstract String
getUrl()
Returns a browser friendly url to the commit.abstract BlueChangeSetEntry
setCheckoutCount
(int checkoutCount)
-
Field Details
-
AUTHOR
- See Also:
-
COMMIT_ID
- See Also:
-
TIMESTAMP
- See Also:
-
MESSAGE
- See Also:
-
AFFECTED_PATHS
- See Also:
-
URL
- See Also:
-
ISSUES
- See Also:
-
CHECKOUT_COUNT
- See Also:
-
-
Constructor Details
-
BlueChangeSetEntry
public BlueChangeSetEntry()
-
-
Method Details
-
getCommitId
Returns a human readable display name of the commit number, revision number, and such thing that identifies this entry.- Returns:
- null if such a concept doesn't make sense for the implementation. For example, in CVS there's no single identifier for commits. Each file gets a different revision number.
-
getAuthor
The user who made this change.- Returns:
- never null.
-
getTimestamp
Returns the timestamp of this commit.- Returns:
- null if the implementation doesn't support it (for example, in CVS a commit spreads over time between multiple changes on multiple files, so there's no single timestamp.)
-
getMsg
Gets the "commit message".- Returns:
- Can be empty but never null.
-
getAffectedPaths
Returns a set of paths in the workspace that was affected by this change.Contains string like 'foo/bar/zot'. No leading/trailing '/', and separator must be normalized to '/'.
- Returns:
- never null.
-
getUrl
Returns a browser friendly url to the commit. E.g to github, or bitbucket.- Returns:
- null if no applicable website exists
-
getIssues
@Exported(name="issues", skipNull=true, inline=true) public abstract Collection<BlueIssue> getIssues()- Returns:
- issue
-
getCheckoutCount
-
setCheckoutCount
-