Interface BuildParametersProvider

    • Method Detail

      • getParameters

        @NotNull
        Map<String,​String> getParameters​(@NotNull
                                               SBuild build,
                                               boolean emulationMode)
        Returns additional build parameters.
        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
      • getParametersAvailableOnAgent

        @NotNull
        Collection<String> getParametersAvailableOnAgent​(@NotNull
                                                         SBuild build)
        Returns collection of parameters (names) always available on the agent for the specified build. Because concrete values of these parameters are not known on the server side only names are returned. This collection may not contain parameters returned by getParameters(jetbrains.buildServer.serverSide.SBuild,boolean). To provide descriptions for the properties ParameterDescriptionProvider
        Parameters:
        build - build
        Returns:
        see above
        Since:
        5.0
      • getPrefix

        @NotNull
        default String getPrefix()
        Returns:
        a common prefix used for all parameter names generated by this provider, returns empty string if there is no common prefix
        Since:
        2022.02