Skip to content

TeamCity Templates

Templates encapsulate common steps (e.g., Node install/build) to share across builds.

Kotlin DSL example

template("NodeTemplate") {
name = "Node CI"
steps {
script { name = "Install"; scriptContent = "npm ci" }
script { name = "Build"; scriptContent = "npm run build" }
}
}

Apply the template in builds to avoid duplication.