I actually just posted one to the show off category a couple days ago. I am really happy with my version, and Damien’s upgrade is pretty powerful.
https://community.jenkins.io/t/shared-library-to-build-docker-images/34
As for an example of using it. https://github.com/halkeye-docker/docker-jenkins/blob/68a143fb88898aa177f2f630404f0503c9dcb421/Jenkinsfile