Class VcsLabel
- java.lang.Object
-
- jetbrains.buildServer.serverSide.vcs.VcsLabel
-
public class VcsLabel extends Object
Data object. Contains information about vcs label set for some specified build on the specified vcs root.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVcsLabel.VcsLabelStatusPresents vcs labeling process status
-
Constructor Summary
Constructors Constructor Description VcsLabel(VcsRootInstance root, Build build, VcsLabel.VcsLabelStatus status, String labelText, String failureReason)Creates new vcs label info object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildgetBuild()Build for which the label is set.StringgetFailureReason()Returns failure reason if set label process failed.StringgetLabelText()Label value.VcsRootInstancegetRoot()Vcs for for which the label is set.VcsLabel.VcsLabelStatusgetStatus()Set label status.StringgetStatusText()booleanisFailed()Returns if labeling process status is failed.booleanisSuccessful()Returns if labeling process status is successful.StringtoString()
-
-
-
Constructor Detail
-
VcsLabel
public VcsLabel(VcsRootInstance root, Build build, VcsLabel.VcsLabelStatus status, String labelText, String failureReason)
Creates new vcs label info object.- Parameters:
root- labeled root.build- labeled build.status- labeling process result status.labelText- label text.failureReason-nullif labeling is successful, failure reason otherwise.
-
-
Method Detail
-
getRoot
public VcsRootInstance getRoot()
Vcs for for which the label is set.- Returns:
- label vcs root.
-
getBuild
public Build getBuild()
Build for which the label is set.- Returns:
- build built on sources which were labeled by the label.
-
getStatus
public VcsLabel.VcsLabelStatus getStatus()
Set label status. Status could be SUCCESSFUL_SET, FAILED, IS_BEING_SET, DISABLED_FOR_THE_ROOT, LABELING_NOT_SUPPORTED.- Returns:
- the label current status.
-
getLabelText
public String getLabelText()
Label value.- Returns:
- the label string value.
-
getFailureReason
public String getFailureReason()
Returns failure reason if set label process failed.- Returns:
- not null reason if labeling process was failed.
-
isSuccessful
public boolean isSuccessful()
Returns if labeling process status is successful.- Returns:
- true is label set successfully, false otherwise.
-
isFailed
public boolean isFailed()
Returns if labeling process status is failed.- Returns:
- true is label set process failed, false otherwise.
-
getStatusText
public String getStatusText()
- Returns:
- labeling process result status text.
-
-