Dsl Based Generator Build Type
Deprecated
This is an experimental API and it is subject to change in the future
This build type can be used as {@link BuildType#settingsGenerator} to generate settings based on Kotlin DSL.
Properties
If true, viewing of the configuration status is allowed externally. False by default.
Artifact publishing rules. Empty by default, i.e. no artifacts will be published by the build.
Build number pattern. By default "%build.counter%"
Helper for creating references to dependency parameters of this buildType.
Description of a template or build configuration
Enables hanging builds detection. By default true.
Controls whether personal builds can be triggered in this build configuration. True by default.
Checksum of settings that can be set in the build configurations generated by some plugin or REST API script
BuildType or template id. It appears in the web UI and is used in urls. If the entity has a uuid specified, then the id can be changed at any time. If uuid is omitted, then TeamCity treats an entity with a changed id as a new entity, all data associated with the old entity will be lost (e.g. a build history). Id can also be used by some settings, e.g. as a part of parameter reference. If you change the id, you should find all its occurrences in the current project and change them too. Id must be unique across all buildTypes and templates on the server. If id is missing, it will be generated from the class name (if the class is not from the jetbrains.buildServer.configs.kotlin package).
Name of the Maven settings file uploaded to the project or a parent project. Defaults to the name used for the current DSL execution. An empty value uses Maven's default settings.
Allows to set maximum number of simultaneously running builds. Default value is 0 - means there is no limit on a number of running builds. See also maxRunningBuildsPerBranch.
Allows to set maximum number of simultaneously running builds per branch. Each line must be in form of branch:number, where branch is either a logical branch name or a pattern containing and number specifies the maximum number of builds which can be simultaneously running in each branch matching the pattern. 0 means there is no limit.
Prevents this build configuration and all builds depending on it in a build chain from being removed by tag-based chain modification. If enabled, TeamCity keeps these builds in the chain even when they match explicitly excluded tags, or when they do not match any of the included tags. By default, false.
Defines for which builds artifacts should be published. By default, the artifacts are published for successful and failed builds, but are not published for the cancelled and failed to start builds.
Helper for creating references to reverse dependency parameters of this buildType
This option regulates TeamCity behavior if the number of running builds reached the limit and a new build is triggered.
Directory containing the Kotlin DSL pom.xml, relative to the generator checkout directory. Defaults to the configured versioned settings path, or .teamcity when it is unavailable. An empty value uses the checkout directory.
Generator of the settings associated with this buildType. The presence of the generator transforms this buildType into a dynamic one, whose settings will be produced by the build of the provided generator buildType. The generator must be registered in the same project as this buildType or one of its subprojects. An unregistered generator is automatically registered in this buildType's project.
Type of this build configuration, when not specified treated as Type.REGULAR
Functions
Configures build clean-up rules
Creates an instance of this buildType via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Configures dependencies
Disables settings with the specified ids in this buildType
Experimental.
Configures failure conditions
Configures build features
Called for build configurations in Project.buildTypes after project initialization, before UI patches, validation and settings generation. The default implementation does nothing. project contains this build configuration; rootProject is the top-level DSL project. Note that if this callback registers any new build configurations in the project, then onProjectInitialized will not be called for them.
Configures output parameters, i.e. the parameters which will be visible to builds depending on the builds of this configuration by snapsthot or artifact dependencies.
Configures build parameters
Configures agent requirements
Configures build steps
Validates this object and reports found errors to the provided consumer
Configures Version Control Settings