Skip to content

Instantly share code, notes, and snippets.

@nhojpatrick
Created February 21, 2021 14:14
Show Gist options
  • Save nhojpatrick/5d6882a3ff97958c7685c8cdc2c38b0e to your computer and use it in GitHub Desktop.
Save nhojpatrick/5d6882a3ff97958c7685c8cdc2c38b0e to your computer and use it in GitHub Desktop.
Jenkins create listView with CodeCoverage and Regex pattern
listView('release job view') {
recurse()
jobs {
regex('.*_release')
}
columns {
status()
weather()
buildButton()
name()
lastSuccess()
lastFailure()
lastDuration()
}
configure { view ->
view / columns << 'io.jenkins.plugins.analysis.core.columns.IssuesTotalColumn' {
name('# Issues')
type('TOTAL')
}
view / columns << 'io.jenkins.plugins.coverage.CoverageColumn' {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment