Class AbstractBuildParametersProvider

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getParameters​(SBuild build, boolean emulationMode)
      Returns additional build parameters.
      java.util.Collection<java.lang.String> getParametersAvailableOnAgent​(SBuild build)
      Returns collection of parameters (names) always available on the agent for the specified build.
      java.lang.String getPrefix()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractBuildParametersProvider

        public AbstractBuildParametersProvider()
    • Method Detail

      • getParameters

        @NotNull
        public java.util.Map<java.lang.String,​java.lang.String> getParameters​(@NotNull
                                                                                    SBuild build,
                                                                                    boolean emulationMode)
        Description copied from interface: BuildParametersProvider
        Returns additional build parameters.
        Specified by:
        getParameters in interface BuildParametersProvider
        Parameters:
        build - the build for which parameters should be added
        emulationMode - if true then parameters are calculated in the emulation mode and provided build is a mock build. There are two cases when emulationMode is true:
        • when a build for which we need to compute parameters is still in the queue
        • when parameters should be calculated in a context of a build configuration when there is no build at all
        in both of these cases a mock build will be passed to the getParameters() method, however in the first case the method BuildPromotionOwner.getBuildPromotion() will return an instance of a BuildPromotion which is in the queue (BuildPromotion.getQueuedBuild() will return a not null object), while in the second case a mock of BuildPromotion without any associated queued or started builds will be returned
        Returns:
        the map of the parameter name - parameter value pairs To provide descriptions for the properties ParameterDescriptionProvider
      • getPrefix

        @NotNull
        public java.lang.String getPrefix()
        Specified by:
        getPrefix in interface BuildParametersProvider
        Returns:
        a common prefix used for all parameter names generated by this provider, returns empty string if there is no common prefix