com.polarion.alm.builder.model.IBuild


FIELDS
Modifiers and TypeNameDescription
String PROTO prototype name
String AUTHOR field author of class {@link SubterraURI}
String BUILD_ARTIFACT field buildArtifact of class {@link SubterraURI}
String BUILD_DESCRIPTOR_NAME field buildDescriptorName of class {@link String}
String CALCULATION_DESCRIPTOR_NAME field calculationDescriptorName of class {@link String}
String BUILD_TAG field buildTag of class {@link String}
String LOCAL_DEPLOYMENT_SPACE_NAME field localDeploymentSpaceName of class {@link String}
String BUILD_STAMP field buildStamp of class {@link String}
String BIR_LOCATION field birLocation of class {@link ILocation}
String CREATION_TIME field creationTime of class {@link Date}
String START_TIME field startTime of class {@link Date}
String FINISH_TIME field finishTime of class {@link Date}
String BUILD_STATUS field buildStatus of class {@link IBuildStatus}
String REPORT_LOCATION field reportLocation of class {@link ILocation}
String LOG_FILES field logFiles of class {@link Collection} of {@link ILocation} s
String BUILD_EVENTS field buildEvents of class {@link IBuildEvents}
String DEPLOYED_ARTIFACTS field deployedArtifacts of class {@link Collection} of {@link IBuildDeploymentArtifact} s
String BUILD_TEST_RESULTS field buildEvents of class {@link IBuildTestResults}
String JOB_ID
String BUILD_REQUESTOR_SPECIFIC_DATA field buildRequestorSpecificData of class {@link Collection} of {@link IStructure} s
METHODS
Modifiers and TypeNameDescription
IUser getAuthor() The user who runs this build/calculation.

More specifically this is the user whose {@link javax.security.auth.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.

IBuildArtifact getBuildArtifact() Build artifact.

Taken from {@link IBuilderService#runBuild(IBuildArtifact,String,String,String,String,Properties)} (through master job).

String getBuildDescriptorName() Build descriptor name.

Taken from {@link IBuilderService#runBuild(IBuildArtifact,String,String,String,String,Properties)} (through master job).

String getCalculationDescriptorName() Calculation descriptor name.

Taken from {@link IBuilderService#runBuild(IBuildArtifact,String,String,String,String,Properties)} (through master job).

String getBuildTag() Build tag.

Taken from {@link IBuilderService#runBuild(IBuildArtifact,String,String,String,String,Properties)} (through master job).

String getLocalDeploymentSpaceName() The name of the local deployment space.

Taken from {@link IBuilderService#runBuild(IBuildArtifact,String,String,String,String,Properties)} (through master job).

String getBuildStamp() Build timestamp.
ILocation getBIRLocation() Folder in {@link IBuilderService#getBuildInformationRepository()} .

Will return the same value as {@link IBuildInformationRepository#getProjectBuildLocation(IBuildArtifact,String)} or null.

Will return null if this represents a reports calculation.

Date getCreationTime() The build job creation time.
Date getStartTime() The build start time.
Date getFinishTime() The build finish time.
String getDurationAsString() The actual build duration time.
IBuildStatus getBuildStatus() Build status.
Collection getLogFiles() All available log files associated with this build are stored in the {@link IBuilderService#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. {@link com.polarion.platform.jobs.ILogger#getLogFiles()} of interface {@link com.polarion.platform.jobs.ILogger} retrievable from {@link IJobUnit#getLogger()} of associated {@link IJob} . 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 {@link ILogger#getLogEvents()} instead of the log files (either retrieved from the job or from this method).

Locations are relative to {@link #getBIRLocation()} .

IBuildEvents 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.

Collection getDeployedArtifacts() Information about artifacts deployed to BIR during the build.

Is empty for plain calculations. Is filled in after the build has finished.

IBuildTestResults getBuildTestResults() Test results, filled in after the build has finished.

Is null for plain calculations, or before the build has finished.

String getJobId() Returns the ID of a master job associated with the build.
String getBuildRequestorSpecificDataValue(String) Build Requestor specific data.

Back to Index