Interface BuildDefinition

    • Method Detail

      • getTriggerDefinitions

        @Nullable
        @Nullable List<TriggerDefinition> getTriggerDefinitions()
        Definitions of all automatic build triggers defined for this build. If this list is empty, Plan is only triggered manually or through dependencies.
        Specified by:
        getTriggerDefinitions in interface PartialBuildDefinition
        Returns:
        immutable list of defined triggers
      • setTriggerDefinitions

        void setTriggerDefinitions​(@Nullable
                                   @Nullable List<TriggerDefinition> triggerDefinitions)
        Replace existing list of triggers with a new one. Setting null indicates that triggerDefinitions should be inherited from master chain.
        Parameters:
        triggerDefinitions - List of TriggerDefinition
      • setBranchMonitoringConfiguration

        void setBranchMonitoringConfiguration​(@Nullable
                                              @Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
      • getCustomConfiguration

        @NotNull
        @NotNull Map<String,​String> getCustomConfiguration()
        /**
        Specified by:
        getCustomConfiguration in interface PartialBuildDefinition
        Returns:
        a map consisting of String key and String value pairs. This is where fields which start with "custom" (eg. custom.test.id) go to
      • setCustomConfiguration

        void setCustomConfiguration​(@NotNull
                                    @NotNull Map<String,​String> configMap)
        A map of String key and String value pairs, representing custom
        Parameters:
        configMap - - can be null
      • getConfigObjects

        @NotNull
        @NotNull Map<String,​Object> getConfigObjects()
        Returns a map of objects generated by the plugins. Each plugin is responsible for populating this list, so there's no final guarantee that a key is unique.
        Specified by:
        getConfigObjects in interface PartialBuildDefinition
        Returns:
        A Map with a String as a key and an arbitrary objects as the value.
      • setConfigObjects

        void setConfigObjects​(@NotNull
                              @NotNull Map<String,​Object> configObjects)
      • setTaskDefinitions

        void setTaskDefinitions​(@NotNull
                                @NotNull List<TaskDefinition> taskDefinitions)
      • setCleanWorkingDirectory

        void setCleanWorkingDirectory​(boolean cleanWorkingDirectory)
        Set the working directory be cleaned or not cleaned after build
        Parameters:
        cleanWorkingDirectory -
      • setRepositoryIdDefiningWorkingDir

        void setRepositoryIdDefiningWorkingDir​(long repositoryDefininingWorkingDir)
      • setMerged

        void setMerged​(boolean value)
        Set whether or not this BuildDefinition has been merged from multiple sources. Merged definitions will not be persisted.
        Parameters:
        value - true if merged
      • isValidValue

        boolean isValidValue​(@Nullable
                             @Nullable Object validValue)
        Whether or not a given object is a valid value for this BuildDefinition. For example, PartialBuildDefintions accept nulls.
        Parameters:
        validValue -
        Returns:
      • setDockerPipelineConfiguration

        void setDockerPipelineConfiguration​(@NotNull
                                            @NotNull DockerPipelineConfiguration dockerPipelineConfiguration)
        Replace Docker pipeline configuration for this buildable with a different one.