The plugin supports colors from the Jenkins palette colors. For example, the following are all valid references to the Jenkins palette colors:
addShortText text: 'ok', color: 'green'
addShortText text: 'ok', color: 'dark-green'
addShortText text: 'ok', color: 'jenkins-!-color-green'
The plugin supports colors from the Jenkins semantic colors. For example, the following are all valid references to the Jenkins semantic colors:
addShortText text: 'fail', color: 'error')
addShortText text: 'ok', color: 'success')
The plugin also supports CSS colors. For example, the following are all valid references to CSS colors:
addShortText text: 'ok', color: '#42f557'
addShortText text: 'ok', color: 'rgb(66, 245, 87)'
addShortText text: 'ok', color: 'var(--green)' // jenkins css vars