Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including mozaik-ext-teamcity with all npm packages installed. Try it out:

require("mozaik/package.json"); // mozaik is a peer dependency. require("react/package.json"); // react is a peer dependency. var mozaikExtTeamcity = require("mozaik-ext-teamcity")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mozaik-ext-teamcity v1.0.0

Mozaik TeamCity widgets

Mozaïk TeamCity widgets

Based on https://github.com/plouc/mozaik-ext-jenkins

License NPM version widget count

TeamCity Client Configuration

In order to use the Mozaïk TeamCity widgets, you must configure its client.

parameters

keyenv keyrequireddescriptionnotes
baseUrlTEAMCITY_API_BASE_URLyesTeamCity base url
basicAuthUserTEAMCITY_API_BASIC_AUTH_USERyesTeamCity auth user
basicAuthPasswordTEAMCITY_API_BASIC_AUTH_PASSWORDyesTeamCity auth password

usage

{
  //…
  api: {
    teamcity: {
      baseUrl: 'https://my-teamcity.ci',
        basicAuthUser:     'user',
        basicAuthPassword: 'password'
    }
  }
}

TeamCity Build Type Builds

TeamCity build type builds

Show TeamCity build type builds.

parameters

keyrequireddescription
buildtypeidyesTeamCity build type identifier
titlenoWidget title (TeamCity build type builds if none provided)

usage

{
  type: 'teamcity.build_type_builds',
  buildtypeid: 'my-build-type-id',
  columns: 1, rows: 1, x: 0, y: 0
}

TeamCity Build Type Builds Histogram

TeamCity build type builds histogram

Show TeamCity build type builds histogram.

parameters

keyrequireddescription
buildtypeidyesTeamCity build type identifier
titlenowidget title (view name used if none provided)
capnonumber of builds to show

usage

{
  type: 'teamcity.build_type_builds_histogram',
  buildtypeid: 'my-buildtype-id',
  columns: 2, rows: 1, x: 0, y: 0
}

TeamCity Build Type Status

TeamCity build type status

TeamCity build type status bold

Display build type current build status.

parameters

keyrequireddescriptionnotes
buildtypeidyesTeamCity build type identifier
layoutnowidget layout (none for default or 'bold')
titlenowidget title (view name used if none provided)

usage

{
  type: 'teamcity.build_type_status', buildtypeid: 'my-buildtype-id',
  columns: 1, rows: 1, x: 0, y: 0
}

TeamCity Project

TeamCity project

List project build types

parameters

keyrequireddescription
projectidyesTeamCity project identifier
titlenowidget title (view name used if none provided)

usage

{
    type: 'teamcity.project',
    projectid: 'my-project-id',
    columns: 2, rows: 1, x: 0, y: 0
}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free