Content-Length: 317870 | pFad | http://github.com/Red-Green-Blue2/jenkins_badges

B5 GitHub - Red-Green-Blue2/jenkins_badges: a small flask app that serves dynamic badge images based on data from Jenkins CI
Skip to content

Red-Green-Blue2/jenkins_badges

Repository files navigation

docs/_static/logo_full.png

jenkins_badges is a small flask app that serves dynamic badge images based on data from Jenkins CI.

Supported badges

Endpoint Examples Default
coverage/<JenkinsJob> 80% +
20%-80%
< 20%
error getting coverage data

Features

  • Badge won't get stale.
  • Configurable coverage level colours
  • Compatible with private Jenkins instances
  • WSGI server compatible

Get it now

With pip:

$ pip install jenkins_badges

Jenkins Requirements

  • The anonymous user has read access or supply jenkins_badges with the credentials of a user who does (see below).
  • Cobertura plugin

Quickstart

  1. create app
import jenkins_badges

#path to your jenkins instance
base_url = "https://example.com/jenkins"

# not required if anonymous jenkins user has read access
username = "apiuser" #a user with read access
token = "6c3bde145bcda49402b6914f2353a734" #user's token

app = jenkins_badges.create_app(base_url=base_url,
                                username=username,
                                token=token)
  1. run it!
app.run()

Output:

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
  1. Your coverage badge image should be accessible at http://127.0.0.1:5000/coverage/<JenkinsJobName>

Project Links

Kudos

License

MIT licensed. See the bundled LICENSE file for more details.

About

a small flask app that serves dynamic badge images based on data from Jenkins CI

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Red-Green-Blue2/jenkins_badges

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy