Package com.polarion.alm.builder.model
Interface IBuildStatus
public interface IBuildStatus
Build status.
Build status is derived from JobState
and IJobStatus
of master IJob
associated with IBuild
. Mapping:
JobState.STATE_UNSCHEDULED -> STATUS_TYPE_WAITING, null message JobState.STATE_ACTIVATING -> STATUS_TYPE_WAITING, null message JobState.STATE_WAITING -> STATUS_TYPE_WAITING, null message JobState.STATE_RUNNING -> STATUS_TYPE_RUNNING, null message JobState.STATE_ABORTED -> STATUS_TYPE_ABORTED, message from IJobStatus (including exception) JobState.STATE_FINISHED, JobStatusType.STATUS_TYPE_OK -> STATUS_TYPE_OK, message from IJobStatus (including exception) JobState.STATE_FINISHED, JobStatusType.STATUS_TYPE_CANCELLED -> STATUS_TYPE_CANCELLED, message from IJobStatus (including exception) JobState.STATE_FINISHED, JobStatusType.STATUS_TYPE_FAILED -> STATUS_TYPE_FAILED, message from IJobStatus (including exception) - STATUS_TYPE_OK_WITH_FAILURES is STATUS_TYPE_OK if there are errors in the log
- Author:
- Stepan Roh, Polarion Software
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Build status type "enumeration". -
Method Summary
-
Method Details
-
getType
IBuildStatus.BuildStatusType getType()Status type.- Returns:
IBuildStatus.BuildStatusType
(notnull
)
-
getMessage
String getMessage()Status message.Something meaningful could be here for
IBuildStatus.BuildStatusType.STATUS_TYPE_OK
,IBuildStatus.BuildStatusType.STATUS_TYPE_OK_WITH_FAILURES
,IBuildStatus.BuildStatusType.STATUS_TYPE_FAILED
,IBuildStatus.BuildStatusType.STATUS_TYPE_ABORTED
and possiblyIBuildStatus.BuildStatusType.STATUS_TYPE_CANCELLED
.- Returns:
- message or
null
-