Interface IMasterBuildJobUnit

All Superinterfaces:
IJobUnit

public interface IMasterBuildJobUnit extends IJobUnit
Typed IJobUnit.
Author:
Stepan Roh, Polarion Software
  • Method Details

    • setBuildArtifact

      void setBuildArtifact(IBuildArtifact buildArtifact)
      Job parameter: build artifact.

      Will be based on IJobUnit.getScope() if not set.

      Parameters:
      buildArtifact - build artifact or null
    • getBuildArtifact

      @NotNull IBuildArtifact getBuildArtifact()
      Since:
      3.7.3
    • setBuildDescriptorName

      void setBuildDescriptorName(String name)
      Job parameter: build descriptor name.
      Parameters:
      name - build descriptor name or null
    • getBuildDescriptorName

      @Nullable String getBuildDescriptorName()
      Since:
      3.7.3
    • setCalculationDescriptorName

      void setCalculationDescriptorName(String name)
      Job parameter: calculation descriptor name.
      Parameters:
      name - calculation descriptor name or null
    • getCalculationDescriptorName

      @Nullable String getCalculationDescriptorName()
      Since:
      3.7.3
    • setBuildTag

      void setBuildTag(String buildTag)
      Job parameter: build tag.
      Parameters:
      buildTag - build tag or null
    • setLocalDeploymentSpaceName

      void setLocalDeploymentSpaceName(String localDeploymentSpaceName)
      Job parameter: name of local deployment space.
      Parameters:
      localDeploymentSpaceName - name of local deployment space or null
    • setProperties

      void setProperties(Properties props)
      Job parameter: build properties.
      Parameters:
      props - build properties or null
    • getBuild

      IBuild getBuild()
      Returns associated build.

      Valid after successful activation.

      Different calls will produce different instances.

      Returns:
      IBuild instance (not null)
      Throws:
      IllegalStateException - if build is not yet available (or there was serious error during activation)
    • registerOutputFile

      void registerOutputFile(IBuildArtifact artifact, File file)
      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 to
      file - file
      Throws:
      IllegalArgumentException - if file is null