Package com.polarion.alm.builder
Interface IMasterBuildJobUnit
- All Superinterfaces:
IJobUnit
Typed
IJobUnit
.- Author:
- Stepan Roh, Polarion Software
-
Field Summary
Fields inherited from interface com.polarion.platform.jobs.IJobUnit
UNKNOWN_WORK_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptiongetBuild()
Returns associated build.void
registerOutputFile
(IBuildArtifact artifact, File file) Register output file whose contents should be logged during build.void
setBuildArtifact
(IBuildArtifact buildArtifact) Job parameter: build artifact.void
setBuildDescriptorName
(String name) Job parameter: build descriptor name.void
setBuildTag
(String buildTag) Job parameter: build tag.void
Job parameter: calculation descriptor name.void
setLocalDeploymentSpaceName
(String localDeploymentSpaceName) Job parameter: name of local deployment space.void
setProperties
(Properties props) Job parameter: build properties.Methods inherited from interface com.polarion.platform.jobs.IJobUnit
activate, getCreator, getJob, getLogger, getName, getPriority, getScope, getWorkLength, run, setJob, setLogger, setScope, setWorkDir
-
Method Details
-
setBuildArtifact
Job parameter: build artifact.Will be based on
IJobUnit.getScope()
if not set.- Parameters:
buildArtifact
- build artifact ornull
-
getBuildArtifact
- Since:
- 3.7.3
-
setBuildDescriptorName
Job parameter: build descriptor name.- Parameters:
name
- build descriptor name ornull
-
getBuildDescriptorName
- Since:
- 3.7.3
-
setCalculationDescriptorName
Job parameter: calculation descriptor name.- Parameters:
name
- calculation descriptor name ornull
-
getCalculationDescriptorName
- Since:
- 3.7.3
-
setBuildTag
Job parameter: build tag.- Parameters:
buildTag
- build tag ornull
-
setLocalDeploymentSpaceName
Job parameter: name of local deployment space.- Parameters:
localDeploymentSpaceName
- name of local deployment space ornull
-
setProperties
Job parameter: build properties.- Parameters:
props
- build properties ornull
-
getBuild
IBuild getBuild()Returns associated build.Valid after successful activation.
Different calls will produce different instances.
- Returns:
IBuild
instance (notnull
)- Throws:
IllegalStateException
- if build is not yet available (or there was serious error during activation)
-
registerOutputFile
Register output file whose contents should be logged during build.It is OK if given file does not (or will not) exist.
- Parameters:
artifact
- artifact the file belongs tofile
- file- Throws:
IllegalArgumentException
- if file isnull
-