Triggers
Collection of build triggers in build configuration or template.
See also triggers().
Example. VCS trigger which triggers builds only in the default branch
See also Vcs Trigger
triggers {
vcs {
branchFilter = "+:<default>"
}
}
Example. Schedule trigger executing once per day at 9AM
See also Schedule Trigger
triggers {
schedule {
schedulingPolicy = daily {
hour = 9
}
triggerBuild = always()
withPendingChangesOnly = false
}
}
Example. Retry build
Retries a failed build with the same settings and the same revisions. See also Retry build trigger
triggers {
retryBuild {
attempts = 2
retryWithTheSameRevisions = true
enforceCleanCheckout = true
enforceCleanCheckoutForDependencies = true
buildParams {
param("param1", "value1")
param("param2", "%build.number%")
}
}
}
Functions
Adds a Branch Remote Run Trigger which triggers a new personal build each time TeamCity detects changes in particular branches
Adds Finish Build Trigger to build configuration or template
Adds GitHub Checks Webhook Trigger to the build configuration or template
Adds a trigger. running builds when there is a modification of the maven dependency content.
Adds a trigger running builds when there is a modification of the snapshot dependency content in the remote repository.
Adds Perforce Build Trigger to build configuration or template
Adds Retry Build Trigger
Adds Schedule Build Trigger to build configuration or template
Validates this object and reports found errors to the provided consumer
Adds VCS trigger to the build configuration or template