Groovy web console

subscribe to the feed Subscribe
to this
site

.each example

Published 1 month ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
servers = [
    "prod",
    "stage",
    "dev",
    "integ",
    "qa",
    "demo"
]

servers.each { server ->
    println "Deploying to ${server}"
    // do stuff to deploy
}