How I Write My Jenkins Files
Note: this article is for Jenkins files I write for Mac and Windows. For Jenkinsfiles I use on Linux or with Docker I will write another article.
Note: I almost always use multi-branch declarative pipelines. These take up more space, but they save me effort because I don’t have to switch branches to build on several branches. It automatically builds all branches as soon as they are pushed to.
// See Pipeline Status at http://localhost:8080/login
I put a nice comment at the top so devs can see where the server is that actually…