Interface IBuild
- All Superinterfaces:
IAdaptable,IChangeListener,IHasCustomValues,IHasValues,IPObject
- All Known Subinterfaces:
ITrackerBuild
The object id is unique within one IBuildArtifact.getGroupEntity() and is equal to
getBuildStamp().
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringfield author of classSubterraURIstatic final Stringfield birLocation of classILocationstatic final Stringfield buildArtifact of classSubterraURIstatic final Stringfield buildDescriptorName of classStringstatic final Stringfield buildEvents of classIBuildEventsstatic final Stringfield buildRequestorSpecificData of classCollectionofIStructuresstatic final Stringfield buildStamp of classStringstatic final Stringfield buildStatus of classIBuildStatusstatic final Stringfield buildTag of classStringstatic final Stringfield buildEvents of classIBuildTestResultsstatic final Stringfield calculationDescriptorName of classStringstatic final Stringfield creationTime of classDatestatic final Stringfield deployedArtifacts of classCollectionofIBuildDeploymentArtifactsstatic final Stringfield finishTime of classDatestatic final Stringstatic final Stringfield localDeploymentSpaceName of classStringstatic final Stringfield logFiles of classCollectionofILocationsstatic final Stringprototype namestatic final Stringfield reportLocation of classILocationstatic final Stringfield startTime of classDate -
Method Summary
Modifier and TypeMethodDescriptionThe user who runs this build/calculation.Build artifact.Build descriptor name.Gathered build events.Build Requestor specific data.Build timestamp.Build status.Build tag.Test results, filled in after the build has finished.Calculation descriptor name.The build job creation time.Information about artifacts deployed to BIR during the build.The actual build duration time.The build finish time.getJobId()Returns the ID of a master job associated with the build.The name of the local deployment space.All available log files associated with this build are stored in theIBuilderService.getBuildInformationRepository().The build start time.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods inherited from interface com.polarion.platform.persistence.model.IPObject
can, copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
-
Field Details
-
PROTO
prototype name- See Also:
-
AUTHOR
field author of classSubterraURI- See Also:
-
BUILD_ARTIFACT
field buildArtifact of classSubterraURI- See Also:
-
BUILD_DESCRIPTOR_NAME
field buildDescriptorName of classString- See Also:
-
CALCULATION_DESCRIPTOR_NAME
field calculationDescriptorName of classString- See Also:
-
BUILD_TAG
field buildTag of classString- See Also:
-
LOCAL_DEPLOYMENT_SPACE_NAME
field localDeploymentSpaceName of classString- See Also:
-
BUILD_STAMP
field buildStamp of classString- See Also:
-
BIR_LOCATION
field birLocation of classILocation- See Also:
-
CREATION_TIME
field creationTime of classDate- See Also:
-
START_TIME
field startTime of classDate- See Also:
-
FINISH_TIME
field finishTime of classDate- See Also:
-
BUILD_STATUS
field buildStatus of classIBuildStatus- See Also:
-
REPORT_LOCATION
field reportLocation of classILocation- See Also:
-
LOG_FILES
field logFiles of classCollectionofILocations- See Also:
-
BUILD_EVENTS
field buildEvents of classIBuildEvents- See Also:
-
DEPLOYED_ARTIFACTS
field deployedArtifacts of classCollectionofIBuildDeploymentArtifacts- See Also:
-
BUILD_TEST_RESULTS
field buildEvents of classIBuildTestResults- See Also:
-
JOB_ID
- Since:
- 3.7.3
- See Also:
-
BUILD_REQUESTOR_SPECIFIC_DATA
field buildRequestorSpecificData of classCollectionofIStructures- Since:
- 3.20.2
- See Also:
-
-
Method Details
-
getAuthor
IUser getAuthor()The user who runs this build/calculation.More specifically this is the user whose
Subjectwas used when the master build/calculation job was spawned.If there is no Polarion user corresponding to the caller, the default or synthetic user is supplied.
- Returns:
- user (not
null)
-
getBuildArtifact
IBuildArtifact getBuildArtifact()Build artifact.Taken from
IBuilderService.runBuild(IBuildArtifact, String, String, String, String, Properties)(through master job).- Returns:
- build artifact (not
null)
-
getBuildDescriptorName
String getBuildDescriptorName()Build descriptor name.Taken from
IBuilderService.runBuild(IBuildArtifact, String, String, String, String, Properties)(through master job).- Returns:
- build descriptor name or
null
-
getCalculationDescriptorName
String getCalculationDescriptorName()Calculation descriptor name.Taken from
IBuilderService.runBuild(IBuildArtifact, String, String, String, String, Properties)(through master job).- Returns:
- calculation descriptor name or
null
-
getBuildTag
String getBuildTag()Build tag.Taken from
IBuilderService.runBuild(IBuildArtifact, String, String, String, String, Properties)(through master job).- Returns:
- build tag (not
null)
-
getLocalDeploymentSpaceName
String getLocalDeploymentSpaceName()The name of the local deployment space.Taken from
IBuilderService.runBuild(IBuildArtifact, String, String, String, String, Properties)(through master job).- Returns:
- the name of the local deployment space or
null
-
getBuildStamp
String getBuildStamp()Build timestamp.- Returns:
- build timestamp (not
null)
-
getBIRLocation
ILocation getBIRLocation()Folder inIBuilderService.getBuildInformationRepository().Will return the same value as
IBuildInformationRepository.getProjectBuildLocation(IBuildArtifact, String)ornull.Will return
nullif this represents a reports calculation.- Returns:
- folder location or
null
-
getCreationTime
Date getCreationTime()The build job creation time.- Returns:
- start time (not
null) - See Also:
-
getStartTime
Date getStartTime()The build start time.- Returns:
- start time (not
null) - See Also:
-
getFinishTime
Date getFinishTime()The build finish time.- Returns:
- finish time or
null - See Also:
-
getDurationAsString
String getDurationAsString()The actual build duration time.- Returns:
- The actual duration time
- Since:
- 3.5.2
-
getBuildStatus
IBuildStatus getBuildStatus()Build status.- Returns:
- status (not
null)
-
getLogFiles
Collection<ILocation> getLogFiles()All available log files associated with this build are stored in theIBuilderService.getBuildInformationRepository().This will typically only be available after the build is finished and log files are transferred to BIR.
It is possible that the returned log files do not yet exist at the time of the call.
For a list of log files available during whole job lifecycle see the following method.
ILogger.getLogFiles()of interfaceILoggerretrievable fromIJobUnit.getLogger()of associatedIJob. Note that these two sets of log files may be different. (There may be additional log files available from one or the other).As long as the job is associated with this build, use
ILogger.getLogEvents()instead of the log files (either retrieved from the job or from this method).Locations are relative to
getBIRLocation().- Returns:
CollectionofILocations (notnull)
-
getBuildEvents
Gathered build events.Typically based on the log (but filtered to contain only normal and fatal errors). The returned value should not be modified by clients outside of the builds framework.
- Returns:
IBuildEvents(notnull)
-
getDeployedArtifacts
Collection<IBuildDeploymentArtifact> getDeployedArtifacts()Information about artifacts deployed to BIR during the build.Is empty for plain calculations. Is filled in after the build has finished.
- Returns:
CollectionofIBuildDeploymentArtifacts (notnull)
-
getBuildTestResults
Test results, filled in after the build has finished.Is
nullfor plain calculations, or before the build has finished.- Returns:
IBuildTestResultsornull
-
getJobId
String getJobId()Returns the ID of a master job associated with the build.- Since:
- 3.7.3
-
getBuildRequestorSpecificDataValue
Build Requestor specific data.- Parameters:
key- data key- Returns:
- value or
null - Since:
- 3.20.2
-