Untrusted Builds Settings
Project feature for Untrusted Builds Settings
Example. Untrusted Settings that require approval for all untrusted builds in the project. The builds will be canceled in 60 minutes if not approved
project {
// Other Project settings ...
features {
// Other Project Features ...
untrustedBuildsSettings {
id = "<Connection id>" // arbitrary ID that can be later used to refer to the project feature
defaultAction = UntrustedBuildsSettings.DefaultAction.APPROVE
approvalRules = "user:teamcity_user"
enableLog = false
timeoutMinutes = 60
}
Content copied to clipboard }
}
Example. Untrusted Settings that force all detected untrusted builds to be canceled and enable logging of untrusted builds
project {
// Other Project settings ...
features {
// Other Project Features ...
untrustedBuildsSettings {
id = "<Connection id>" // arbitrary ID that can be later used to refer to the project feature
defaultAction = UntrustedBuildsSettings.DefaultAction.CANCEL
enableLog = true
}
Content copied to clipboard }
}
See also
Properties
Approval rules for untrusted builds. Should be specified only if APPROVE is set as a defaultAction
If APPROVE action is choosen, then approvalRules field should be specified
If started by user with sufficient permissions, mark build as approved by user
Time (in minutes) before the build is cancelled, defaults to 360 minutes. Should be specified only if APPROVE is set as a defaultAction
Functions
Copies parameters of this object to the specified target
Creates an instance of this project feature 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.
Validates this object and reports found errors to the provided consumer