Package jetbrains.buildServer.pipeline
Class GeneratePromotionsFromPipelineVirtualProcessor
- java.lang.Object
-
- jetbrains.buildServer.pipeline.GeneratePromotionsFromPipelineVirtualProcessor
-
- All Implemented Interfaces:
TeamCityExtension,PositionAware,PositionConstraintAware,ProcessVirtualConfigurations
@Service public class GeneratePromotionsFromPipelineVirtualProcessor extends Object implements ProcessVirtualConfigurations, PositionAware
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.virtualConfiguration.processor.ProcessVirtualConfigurations
MAX_GENERATED_BUILDS_FOR_EACH_CHAIN, TC_VIRTUAL_CONFIGURATION_PROCESSED_LIMIT_ERROR, VIRTUAL_CONFIGURATION_RETENTION_MINUTES
-
-
Constructor Summary
Constructors Constructor Description GeneratePromotionsFromPipelineVirtualProcessor(PipelinePromotionsGeneratorProvider pipelinePromotionsGeneratorProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BuildPromotion>addToQueue(BuildPromotion promotion)List<BuildPromotion>freeze(BuildPromotion promotion)Called during the build promotion settings freeze.PositionConstraintgetConstraint()Constraint to be respected during objects sorting.StringgetOrderId()Returns object id that can be referenced by {PositionConstraint}StringgetType()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jetbrains.buildServer.virtualConfiguration.processor.ProcessVirtualConfigurations
freeze, supportsGeneratedBuildsLimit
-
-
-
-
Constructor Detail
-
GeneratePromotionsFromPipelineVirtualProcessor
public GeneratePromotionsFromPipelineVirtualProcessor(@NotNull PipelinePromotionsGeneratorProvider pipelinePromotionsGeneratorProvider)
-
-
Method Detail
-
getOrderId
@NotNull public String getOrderId()
Description copied from interface:PositionAwareReturns object id that can be referenced by {PositionConstraint}- Specified by:
getOrderIdin interfacePositionAware- Returns:
- object id
-
getConstraint
@NotNull public PositionConstraint getConstraint()
Description copied from interface:PositionConstraintAwareConstraint to be respected during objects sorting.- Specified by:
getConstraintin interfacePositionConstraintAware- Returns:
- position constraint
-
addToQueue
@NotNull public List<BuildPromotion> addToQueue(@NotNull BuildPromotion promotion)
- Specified by:
addToQueuein interfaceProcessVirtualConfigurations- Parameters:
promotion- top promotion- Returns:
- created new promotions from virtual configurations
-
freeze
@NotNull public List<BuildPromotion> freeze(@NotNull BuildPromotion promotion)
Description copied from interface:ProcessVirtualConfigurationsCalled during the build promotion settings freeze. At this point the extension can generate a new set of build promotions and add them to the queue. The generated build promotions should be returned as a result of this method. Note: this method is called instead ofProcessVirtualConfigurations.freeze(BuildPromotion, int)if extension does not support a limit for the number of generated builds, i.e. whenProcessVirtualConfigurations.supportsGeneratedBuildsLimit()returns false- Specified by:
freezein interfaceProcessVirtualConfigurations- Parameters:
promotion- a build promotion to process- Returns:
- all generated build promotions
-
getType
@NotNull public String getType()
- Specified by:
getTypein interfaceProcessVirtualConfigurations
-
-