Simplifying Jenkinsfiles
▻https://hackernoon.com/simplifying-jenkinsfiles-c97cfee13f83?source=rss----3a8144eabfe3---4
Using #jenkins to unfuck Jenkins.I’ve been going on an absolute mad one through the inner workings of Jenkins over the past few weeks. We’ve been scouring for a nice, convenient way of simplifying the #jenkinsfile at the root of our application repositories. We like Jenkins and after a bit of googling and some experimentation, we found something cool. BUT FIRST, the problem.I’ve tried to eloquently describe how grim some of our Jenkinsfiles were, but a colleague of mine beat me to the punch:That Jenkinsfile looks like a #groovy developer threw up into the cat command.He wasn’t wrong. By Jesus, we had some pretty crazy shit going on in our files. All of it needed but none of it pretty. Check this bad boy out:pipeline agent any parameters string (defaultValue: ’’, (...)