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
Modifier and TypeFieldDescriptionstatic final String
field author of classSubterraURI
static final String
field birLocation of classILocation
static final String
field buildArtifact of classSubterraURI
static final String
field buildDescriptorName of classString
static final String
field buildEvents of classIBuildEvents
static final String
field buildRequestorSpecificData of classCollection
ofIStructure
sstatic final String
field buildStamp of classString
static final String
field buildStatus of classIBuildStatus
static final String
field buildTag of classString
static final String
field buildEvents of classIBuildTestResults
static final String
field calculationDescriptorName of classString
static final String
field creationTime of classDate
static final String
field deployedArtifacts of classCollection
ofIBuildDeploymentArtifact
sstatic final String
field finishTime of classDate
static final String
static final String
field localDeploymentSpaceName of classString
static final String
field logFiles of classCollection
ofILocation
sstatic final String
prototype namestatic final String
field reportLocation of classILocation
static final String
field 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
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods 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 classCollection
ofILocation
s- See Also:
-
BUILD_EVENTS
field buildEvents of classIBuildEvents
- See Also:
-
DEPLOYED_ARTIFACTS
field deployedArtifacts of classCollection
ofIBuildDeploymentArtifact
s- 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 classCollection
ofIStructure
s- 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
Subject
was 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
null
if 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 interfaceILogger
retrievable 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:
Collection
ofILocation
s (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:
Collection
ofIBuildDeploymentArtifact
s (notnull
)
-
getBuildTestResults
Test results, filled in after the build has finished.Is
null
for plain calculations, or before the build has finished.- Returns:
IBuildTestResults
ornull
-
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
-