mozaik-ext-teamcity
v1.0.0
Published
Mozaik TeamCity widgets
Downloads
1
Maintainers
Readme
Mozaïk TeamCity widgets
Based on https://github.com/plouc/mozaik-ext-jenkins
TeamCity Client Configuration
In order to use the Mozaïk TeamCity widgets, you must configure its client.
parameters
key | env key | required | description | notes
--------------------|----------------------------------|----------|--------------------------|-----------------------------------------------
baseUrl
| TEAMCITY_API_BASE_URL | yes | TeamCity base url |
basicAuthUser
| TEAMCITY_API_BASIC_AUTH_USER | yes | TeamCity auth user |
basicAuthPassword
| TEAMCITY_API_BASIC_AUTH_PASSWORD | yes | TeamCity auth password |
usage
{
//…
api: {
teamcity: {
baseUrl: 'https://my-teamcity.ci',
basicAuthUser: 'user',
basicAuthPassword: 'password'
}
}
}
TeamCity Build Type Builds
Show TeamCity build type builds.
parameters
key | required | description
-------------------|----------|---------------
buildtypeid
| yes | TeamCity build type identifier |
title
| no | Widget 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
Show TeamCity build type builds histogram.
parameters
key | required | description
---------------|----------|-------------------------------------------------|
buildtypeid
| yes | TeamCity build type identifier |
title
| no | widget title (view name used if none provided)|
cap
| no | number 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
Display build type current build status.
parameters
key | required |description | notes
---------------|----------|-------------------------------------------------|-----------------------------------------
buildtypeid
| yes | TeamCity build type identifier | |
layout
| no | widget layout (none for default or 'bold') |
title
| no | widget 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
List project build types
parameters
key | required | description
-------------|----------|---------------
projectid
| yes | TeamCity project identifier
title
| no | widget title (view name used if none provided)
usage
{
type: 'teamcity.project',
projectid: 'my-project-id',
columns: 2, rows: 1, x: 0, y: 0
}