Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Teamcity build properties are available in build script via "teamcity" property of the project. This property contains map with all teamcity-related propertiesdefined system properties (see Defining and Using Build Parameters for details). Following example contains task, that will print all available build properties to the build log (it must be executed by buildserver):

Code Block
  task printProperties << {
    teamcity.each { key, val ->
      println "##tc-property name='${key}' value='${val}'"
    }
  }

...