This library is good start for anyone who is interested in learning and creating Global Jenkins Shared Library.
This library will work on Jenkins setup on Kubernetes and will create dynamic slave pods on-demand.
Jenkinsfile --> ci.groovy --> cd.groovy
In the screen-print below, 1st row represents dynamic slaves and 2nd row represents Jenkins itself in K8s cluster
This jenkins-shared-library is for beginners and for learning purpose. There are lot many features to be added to make this jenkins-shared-library production ready.