We already saw that we can open a repository with global pipeline libraries and consult the functions to find out what they do. While the developer in me prefers that option, many might find it too complicated and might prefer something more "non-developer friendly". Fortunately, there is an alternative way to document and consult libraries.
Let's go back to the forked repository with the libraries.
1 open
"https://github.com/$GH_USER/jenkins-shared-libraries/tree/master/vars"
If you pay closer attention, you'll notice that all Groovy files with names that start with k8s have an accompanying txt file. Let's take a closer look at one of them.
1 curl "https://raw.githubusercontent.com/$GH_USER/jenkins-shared-
libraries/master/vars/k8sBuildImageBeta.txt"
The output is as follows...