JetBrains TeamCity is a user-friendly continuous integration (CI) server for developers and build engineers. Use the TeamCity plugin to interact with the TeamCity Server to perform tasks such as managing agents, pools and running builds.
Plugin Version 2.0.2.2020102201
Revised on November 1, 2020
Create TeamCity plugin configurations
Plugin configurations are sets of parameters that can be applied across some, or all, plugin procedures. They can reduce the repetition of common values, create predefined parameter sets, and securely store credentials. Each configuration is given a unique name that is entered in the designated parameter for the plugin procedures that use them. The following steps illustrate how to create a plugin configuration that can be used by one or more plugin procedures.
To create a plugin configuration:
-
Navigate to
. -
Select Add plugin configuration to create a new configuration.
-
In the New Configuration window, specify a Name for the configuration.
-
Select the Project that the configuration belongs to.
-
Optionally, add a Description for the configuration.
-
Select the appropriate Plugin for the configuration.
-
Configure the plugin configuration parameters.
-
Select OK.
Depending on your plugin configuration and how you run procedures, the Differences in plugin UI behavior. field may behave differently in the CloudBees CD/RO UI. For more information, refer to |
TeamCity plugin configuration parameters
Parameter | Description |
---|---|
Configuration Name |
Provide a unique name for the connection. |
Hostname |
Host name of the TeamCity server. |
Port |
Port used by the TeamCity server. |
Protocol |
Protocol used by the TeamCity server. |
Login As |
TeamCity account username/password. For guest access, use the |
Create TeamCity plugin procedures
Plugin procedures can be used in procedure steps, process steps, and pipeline tasks, allowing you to orchestrate third-party tools at the appropriate time in your component, application process, or pipeline.
Depending on your plugin configuration and how you run procedures, the Differences in plugin UI behavior. field may behave differently in the CloudBees CD/RO UI. For more information, refer to |
Enable agent
Enables or disables the build agent.
Input parameters
Parameter | Description |
---|---|
Configuration Name |
The name of the saved configuration for accessing the TeamCity server. |
Agent ID |
Build agent identifier, for setting the enabled state. |
Enable |
Enabled state for the build agent. |
Comment |
Optional comment on build agent status change. |
Build
Runs the build task.
Input parameters
Parameter | Description |
---|---|
Configuration Name |
The name of the saved configuration for accessing the TeamCity server. |
TeamCity Build ID |
The build task identifier to be launched. |
Parameters |
The additional parameters for the build. Each parameter must be on a new line in the following format: |
Property for resulting internal build ID |
Property name used to store the resulting internal build ID. |
Import build artifact
Imports build artifact from TeamCity to the CloudBees CD/RO repository.
Input parameters
Parameter | Description |
---|---|
Configuration Name |
The name of the saved configuration for accessing the TeamCity server. |
Internal Build ID |
The internal build identifier for the successfully completed build. |
Repository Name |
The name of the repository where the artifact is published. |
Artifact Group |
The artifact group for the published build artifact. |
Artifact Key |
The artifact key for the published build artifact. |
Artifact Version |
The artifact version for the published build artifact. |
Release notes
3.0.0
-
Upgraded from Perl 5.8 to Perl 5.32. The plugin is not backward compatible with CloudBees CD/RO versions prior to 10.3. Starting from this release, a new agent is required to run EC-TeamCity plugin procedures.
2.0.1
-
Added support for CSRF protection.
-
The Build plugin procedure now saves the following additional build properties:
buildUrl
,buildStatus
, andbuildState
. -
Upgraded plugin configuration management.
1.2.9
-
Added the option to sign in to the TeamCity server with
guest
access. -
Added HTTP/HTTPS protocol selection for access to the TeamCity server.
1.2.8
-
Fixed an error in the name of the procedure parameters.
-
Added support for the Get Build Log procedure.
-
The Build now procedure returns the build identifier, regardless of the status of the completed task.
1.2.7
-
Fixed the procedure definition in the CloudBees CD/RO pipeline interface.
-
Added default settings for Build and Import Build Artifact procedures.
-
Corrected labels for the parameters of procedures.