Make sure the build configuration is working.Įxtract a meta-runner to the desired project. Prepare a build configuration to test the build steps to be used in the meta-runner. To create a meta-runner, follow these steps (described below in more detail): ![]() Let us consider an example of creating a meta-runner. You can create a build configuration via the TeamCity web UI and extract a meta-runner from it or use the XML definition of an existing build configuration as a meta-runner. ![]() To make a meta-runner available to all projects, place it in the Root project. The runner is now available in the list of build runners on the Build Configuration Settings | Build Steps page and is represented as a native TeamCity runner with a convenient UI.Ī meta-runner placed into a project will be available to all its subprojects and build configurations. If the meta-runner is loaded successfully, you will see it listed on the Meta-Runners page in the project settings if you have appropriate permissions, you can modify the definition directly in the TeamCity UI. Once you place the file on the disk, TeamCity will detect it and load the meta-runner no server restart is required. If the metaRunners directory does not exist, create it manually. To install a meta-runner directly to the file system, put the meta-runner definition file into the \pluginData\metaRunners directory, where is the identifier of a project under which you want to place the meta-runner. To install a meta-runner via the Web UI, go to Project Settings | Meta-Runners, click Upload Meta-Runner, and select the meta-runner definition file. Alternatively, you can do it directly via the file system. You can install a meta-runner using the TeamCity web UI. Download the required meta-runner (or copy its definition to a file) and install it as described in the section below. ![]() Meta-runners Power Pack for TeamCity, available on GitHub, is a collection of meta-runners for various tasks such as downloading a file, triggering a build, tagging a build, changing a build status, running PHP tasks, and so on.Įach *MRPP_*.xml* file contains a definition of a single meta-runner. ![]() You can use the existing meta-runners from the TeamCity Meta-Runners Power Pack or create your own meta-runner. If a meta-runner is stored on the Root project level, it is available globally (in all projects). TeamCity allows extracting meta-runners using the web UI.Īll meta-runners are stored on a project level, so they are available within this project and its subprojects only, and are not visible outside. Simplify your build configuration and decrease a number of build stepsīasically, a meta-runner is a set of build steps from one build configuration that you can reuse in another it is an XML definition, containing build steps, requirements, and parameters, that you can utilize in XML definitions of other build configurations. This build runner can then be used as any other build runner in a build step of any other build configuration or template.Ĭreate new runners for typical tasks (for example, publish to FTP, delete a directory) A meta-runner allows you to extract build steps, requirements, and parameters from a build configuration and create a build runner out of them.
0 Comments
Leave a Reply. |