I've had to start working with Jenkins for my job and pushed out a jenkins definition in my Devil's Dictionary for tech:
Jenkins - A web application which basically wraps the linux shell in a GUI. It's the WordPress of DevOps. Like WordPress, Jenkins advertises a wide extensive functionality through a large plugins library. Also like WordPress, Jenkins will break at the next update if you actually start using any of those plugins. Once the dev industry gets fed up, Jenkins will most likely be replaced by the DevOps equivalent of Jekyll.
I definitely use Ansible to drive my processes - see below comment. But it seems more focused on server configuration. It's nice though. The less I have to install on remote machines, the better.
Yep - Jenkins and Wordpress are both web apps and both dynamically generate responses after requests are received.
My hope is that we'll see a tool like Jenkins, but one that will just pre-generate build and deploy scripts from the desktop, the way Jekyll "compiles" web pages out of markdown.
Great episode. I find it hard to strongly recommend Jenkins for new use. I prefer to use a combination of programs:
GNU Make for invocation and coordination of build steps
Ruby/python/powershell for complex build tasks, because bash can't handle complex tasks well
Language specific commands for downloading dependencies and building/packaging your code
Ansible for configuring remote servers and uploading packaged project (lean heavily on conf.d convention).
Everything gets invoked from make and the README.md file always has the copy+paste invocation to clean, config, build, test, deploy and the entire build process lives in the same git repo as the project.
When I do use Jenkins, I build out my CICD process using the above and then I have Jenkins invoke make so you keep the actual configuration of Jenkins simple, but you still get all the fancy GUI animations and reporting for the people who're into that.
I have to say, I believe you gave some...misleading...advice here with respect to Jenkins. A Jenkinsfile is 100x preferable to a Makefile or 1,000x preferable to a custom build.sh file. Why? For pretty much the same reasons why systemd is better than init scripts:
Standardized nomenclature/handling of domain - makes it easy for anybody on the team to figure out what is going on, not just a "build expert"
Infrastructure/Configuration-as-code - Jenkinsfile is version-controlled along with the code it is building/deploying; no "secret" scripts or "hidden" infrastructure...download the latest Jenkins Docker image, run the container on your local dev box and you can do the CI / CD on your own machine just like it would happen "for reals".
It's simpler - You know how to run Docker containers, you know how to point to your git repo/scm vault of choice, if your Jenkinsfile is right, that is pretty much all that is needed to get up and going.
Jenkins covers more than just what a Makefile can do, not just building, testing, documenting, logging but also deploying, auditing, approvals, reporting, dependency management and whatever else you need it to do. It's extensible, so anything it doesn't currently do you can extend it to do, and if you're charitable share it with the world so that everyone can benefit.
Visibility/Easy Visualization - so easy even your pointy-haired boss can make heads or tails of it. Don't laugh, this actually helps the development process!
Sooner or later, CI / CD is going to happen to you. Would you rather do it manually every time? With a custom solution? A makefile? Or a tool purpose-build by the open source community over the past 15+ years expressly for this purpose? I believe both of you gave short shrift to the decades of experience that Jenkins embodies and represents, to the detriment of your developer comrades/listeners and possibly your own team at work.
Yes, "newer" tools like Concourse-CI are "shiny" and all "YAML"-y, but maybe YAML isn't what is missing in your build/deploy pipeline. Having everything well-defined out-of-the-box for you is great, until you run into a situation where you need to extend it...and then you are up against the wall. With Jenkins, the only wall you have to overcome is the laziness to do it yourself or contract somebody else to build it for you!
Oh, and by the way, you misrepresented the declarative vs. groovy syntax - it's not either-or, but both-and.
Just one developers opinion.
P.S. The later versions of GitLab have made great strides, but it is still not extend-able like Jenkins is AND Jenkins hooks into GitLab (and others) just fine. You didn't mention this aspect at all.
2
u/[deleted] Jan 24 '19
I've had to start working with Jenkins for my job and pushed out a jenkins definition in my Devil's Dictionary for tech:
1
u/jkwuc89 Jan 25 '19
Two shows in a row nearly 100% focused on development. This is why I started listening to Coder Radio. Well done Wes and Michael. Keep it up!
1
u/[deleted] Jan 25 '19
Great episode. I find it hard to strongly recommend Jenkins for new use. I prefer to use a combination of programs:
Everything gets invoked from make and the README.md file always has the copy+paste invocation to clean, config, build, test, deploy and the entire build process lives in the same git repo as the project.
When I do use Jenkins, I build out my CICD process using the above and then I have Jenkins invoke make so you keep the actual configuration of Jenkins simple, but you still get all the fancy GUI animations and reporting for the people who're into that.
1
u/browseria Jan 25 '19 edited Jan 25 '19
I have to say, I believe you gave some...misleading...advice here with respect to Jenkins. A
Jenkinsfileis 100x preferable to aMakefileor 1,000x preferable to a custombuild.shfile. Why? For pretty much the same reasons why systemd is better than init scripts:Jenkinsfileis version-controlled along with the code it is building/deploying; no "secret" scripts or "hidden" infrastructure...download the latest Jenkins Docker image, run the container on your local dev box and you can do the CI / CD on your own machine just like it would happen "for reals".Jenkinsfileis right, that is pretty much all that is needed to get up and going.Makefilecan do, not just building, testing, documenting, logging but also deploying, auditing, approvals, reporting, dependency management and whatever else you need it to do. It's extensible, so anything it doesn't currently do you can extend it to do, and if you're charitable share it with the world so that everyone can benefit.Sooner or later, CI / CD is going to happen to you. Would you rather do it manually every time? With a custom solution? A makefile? Or a tool purpose-build by the open source community over the past 15+ years expressly for this purpose? I believe both of you gave short shrift to the decades of experience that Jenkins embodies and represents, to the detriment of your developer comrades/listeners and possibly your own team at work.
Yes, "newer" tools like Concourse-CI are "shiny" and all "YAML"-y, but maybe YAML isn't what is missing in your build/deploy pipeline. Having everything well-defined out-of-the-box for you is great, until you run into a situation where you need to extend it...and then you are up against the wall. With Jenkins, the only wall you have to overcome is the laziness to do it yourself or contract somebody else to build it for you!
Oh, and by the way, you misrepresented the declarative vs. groovy syntax - it's not either-or, but both-and.
Just one developers opinion.
P.S. The later versions of GitLab have made great strides, but it is still not extend-able like Jenkins is AND Jenkins hooks into GitLab (and others) just fine. You didn't mention this aspect at all.