Interview Prep/Jenkins/Shared libraries

What is a `.txt` file in `vars/` for?

BeginnerConceptShared libraries
Answer

vars/kanikoBuild.txt (HTML or Markdown depending on the markup formatter) is the documentation shown in Pipeline Syntax > Global Variables Reference for jobs that load the library. Document required arguments, defaults and an example. It is the closest thing to API docs your developers will read.

All Jenkins questions Roadmap: Jenkins

More on Shared libraries