How to dynamically update the shields on github based on builds and test results? How to dynamically update the shields on github based on builds and test results? jenkins jenkins

How to dynamically update the shields on github based on builds and test results?


I would suggest taking a look at anybadge. You can programmatically generate badges, set custom thresholds for choosing colors based on results or set fixed colors. It's a small light-weight python app which keeps things simple. You can generate the SVG text and embed that direct into your posts.

The main reason I use this package is because my production servers are fire-walled with no external internet access, and I can't (and don't want to) be hitting external URLs to generate badges.

If you want to run your own server it can also do that. After pip installing, you can run anybadge-server to run a local webserver.

> anybadge-server2020-03-20 08:39:09,434 INFO:anybadge_server.py(154):main: Starting up anybadge server.2020-03-20 08:39:09,441 INFO:anybadge_server.py(112):run: Serving at: http://localhost:8000

anybadge web server

The result is:

example badge