Skip to content
A TeamCity plugin which adds the ability to write a build step using Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
3rdparty-licenses/codemirror
agent/src/main
assets
gradle/wrapper
server/src/main
.gitignore
.travis.yml
LICENSE
README.adoc
build.gradle
gradlew
gradlew.bat
settings.gradle

README.adoc

Groovy build step plugin for TeamCity Build Status

This plugin adds the ability to write build steps as Groovy script.

Usage

Here’s a screenshot of the build runner:

groovy teamcity

The script exposes the following variables:

  • system : system properties (type Map)

  • env : environment variables (type Map)

  • params : all build parameters (type Map)

  • configParams: configuration parameters (type Map)

  • agent: the build agent (type jetbrains.buildServer.agent.AgentRunningBuild)

  • context : the build execution context (type: jetbrains.buildServer.agent.BuildRunnerContext)

  • log: build runner logger (type: jetbrains.buildServer.agent.BuildProgressLogger)

Logging

For messages to appear into the build log, you mustn’t use println. Instead, use the build logger:

system.each { k, v ->
    log.message "System property: $k = $v"
}

Building

To build the project, open a command line and type in:

./gradlew assembleTeamcityPlugin

Installing

Copy the build/teamcity/teamcity-groovy-buildstep-1.0.0-SNAPSHOT.zip file into the .BuildServer/plugins directory.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.