Docker Compose Step
A build step for docker-compose step.
Example. Adds a Docker Compose build step with specified Compose YAML file.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
dockerCompose {
name = "My Compose"
file = "my-services.yml"
}
Content copied to clipboard }
}
Content copied to clipboard
Example. Adds a Docker Compose build step with multiple Compose YAML files, separated by space. Option for explicitly pull images is enabled. This step will we executed only if build status is sucessfull for previous build steps and extra condition is met.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
dockerCompose {
name = "My Compose"
executionMode = BuildStep.ExecutionMode.RUN_ON_SUCCESS
conditions {
equals("teamcity.build.branch", "release")
}
file = "my-services.yml my-other-services.yml"
forcePull = true
}
Content copied to clipboard }
}
Content copied to clipboard
See also
Properties
Link copied to clipboard
Optional collection of build step execution conditions
Link copied to clipboard
Build step execution mode
Functions
Link copied to clipboard
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): DelegateProvider<Boolean?>
Link copied to clipboard
Deletes all configured build step conditions
Link copied to clipboard
Link copied to clipboard
Configures build step conditions
Link copied to clipboard
Copies parameters of this object to the specified target
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): DelegateProvider<E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Validates this object and reports found errors to the provided consumer