ghale / gradle-jenkins-plugin

Gradle plugin to programmatically configure Jenkins jobs.
123 stars 42 forks source link

Add support for per server configuration #3

Closed ghale closed 11 years ago

ghale commented 11 years ago

you might have a single job deployed to two (or more) servers that needs a slightly different configuration on each server.

ghale commented 11 years ago

Added to v0.2.0

You can override config with a closure on the server directive:

jobs {
  myjob {
    server servers.test, {
      xml override { projectXml ->
        // do something with the xml
      }
    }
  }
}