anchor.diff:              }
   
               "teamcity2017.1" {
  -                version = "2017.1.4"
  -                javaHome = file(extra["java8Home"])
  +                version = "2017.1.5"
  +                javaHome = file(extra["java8Home"] as String)
   
                   // Replace the default server options
                   setServerOptions("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5500")
  +            }
  +
  +            "teamcity2017.2" {
  +                version = "2017.2.2"
               }
           }
       }
  
positive.code: ----
      extra["downloadsDir"] = project.findProperty("downloads.dir") ?: "${rootDir}/downloads"
      extra["java7Home"] = project.findProperty("java7.home") ?: "/opt/jdk1.7.0_80"
      extra["java8Home"] = project.findProperty("java8.home") ?: "/opt/jdk1.8.0_144"
  
  
      teamcity {
  
negative.code:             baseHomeDir = 'teamcity/servers'
              baseDataDir = 'teamcity/data'
  
              teamcity91 {
                  version = '9.1.7'
                  javaHome = file('/opt/jdk1.7.0_80')
                  // Add to the default server options
                  serverOptions '-Dproperty=value'
                  serverOptions '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5500'
              }
  
              teamcity20171 {
                  version = '2017.1.5'
                  downloadUrl = 'http://repository/teamcity/TeamCity-2017.1.5.tar.gz'
                  homeDir = file("$rootDir/teamcity/servers/TeamCity-2017.1.5")
                  dataDir = file("$rootDir/teamcity/data/2017.1")
                  javaHome = file('/opt/jdk1.8.0_162')
                  // Replace the default server options
                  serverOptions = '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5500'
              }
  
              'teamcity2017.2' {
                  version = '2017.2.2'
                  javaHome = file('/opt/jdk1.8.0_162')
              }
          }
      }
  ----
  