Build Features
Collection of build features in build configuration or template.
Example. Add approval to the build
See also Approval
features {
approval {
approvalRules = "user:qa"
}
}
Example. Import test results into TeamCity from the JUnix test results XML files
See also XML report processing
features {
xmlReport {
reportType = XmlReport.XmlReportType.JUNIT
rules = "test-reports/**.xml"
}
}
See also features().
Functions
Adds a build feature which updates the AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion attributes in AssemblyInfo files under Properties folders. No additional attributes will be added, make sure you have all necessary attributes in the source code. Changed source files are reverted at the end of a build.
Adds a build cache to the build
Enables status publishing to external system
Copies the receiver build features
Copies the receiver build features to the specified target
Example.
Adds the specified build feature
Adds a build feature initialized with the specified init block
Adds a free disk space check to the build configuration or template
Example. Adds a Golang build feature for test reporting. Note that additional -json
command line argument is specified for tests run.
Configures Investigations Auto Assigner behaviour.
Provides integration with Jira Cloud via its Build and Deployment APIs
The Matrix Builds feature allows you to define a build configuration with different sets of parameters/parameter values. Running this build configuration creates a batch of separate builds, each running its own parameter set.
Enables automatic merge in the build configuration or template
Add notification rule
Example. Adds an npm registry build feature. Please note that corresponding connection project feature should be provided in project. This connection will be used only inside nodeJS
build steps.
Provides NuGet feed credentials for feed
Enables NuGet packages indexing into feed
Example. Enables tests parallelization. Uses 3 parallel batches to run tests.
Adds a build feature build feature
Example. Provides AWS Credentials of chosen AWS Connection to the Build Agent
Enables pull requests integration
Adds a build feature which processes text files by performing regular expressions
Adds a Ruby Environment Configurator build feature passes Ruby interpreter to all build steps.
Adds a Shared Resource build feature which allows limiting concurrently running builds using a shared resource. Note that corrensponding Shared Resources project feature should be defined.
Adds a build feature which runs SSH agent during a build with the specified SSH key loaded
Adds a build feature cleaning files and processes created during a build
Validates this object and reports found errors to the provided consumer
Enables automatic VCS labeling in a build
Adds a build feature parses xml report produced by external tools and present them as build results