In order to use the Mozaïk jenkins widgets, you must configure its client.
key | env key | required | description | notes |
---|---|---|---|---|
baseUrl |
JENKINS_API_BASE_URL | yes | jenkins base url | |
basicAuthUser |
JENKINS_API_BASIC_AUTH_USER | yes | jenkins auth user | |
basicAuthPassword |
JENKINS_API_BASIC_AUTH_PASSWORD | yes | jenkins auth password | |
customCa |
JENKINS_API_CUSTOM_CA | no | jenkins certificate | require mozaik-ext-jenkins >= 1.1.0 |
{
//…
api: {
jenkins: {
baseUrl: 'https://my-jenkins.ci',
basicAuthUser: 'user',
basicAuthPassword: 'password'
}
}
}
Show jenkins job builds.
key | required | description |
---|---|---|
job |
yes | jenkins job identifier |
title |
no | Widget title (Jenkins job builds if none provided) |
{
type: 'jenkins.job_builds', job: 'my-job',
columns: 1, rows: 1, x: 0, y: 0
}
Show jenkins job builds histogram.
key | required | description |
---|---|---|
job |
yes | jenkins job identifier |
{
type: 'jenkins.job_builds_histogram', job: 'my-job',
columns: 1, rows: 1, x: 0, y: 0
}
Display job current build status.
key | required | description | notes |
---|---|---|---|
job |
yes | jenkins job identifier | |
layout |
no | widget layout (none for default or 'bold') | require mozaik-ext-jenkins >= 1.1.0 |
{
type: 'jenkins.job_status', job: 'my-job',
columns: 1, rows: 1, x: 0, y: 0
}
Display job current build status with progress % - based on Job Status - bold.
key | required | description | notes |
---|---|---|---|
job |
yes | jenkins job identifier |
{
type: 'jenkins.job_status_progress', job: 'my-job',
columns: 1, rows: 1, x: 0, y: 0
}
List view jobs
key | required | description |
---|---|---|
view |
yes | jenkins view identifier |
title |
no | widget title (view name used if none provided) |
{
type: 'jenkins.view', view: 'dev-env',
columns: 2, rows: 1, x: 0, y: 0
}