- A single repository
- Everyone commits to the mainline every day
- Every commit should be built on an integration machine
- Build should be fast
Again language changes over time, so "for some definition" of single repository and mainline. We should also understand fast to mean "fast enough". This last one is "helpful" rather than an absolute rule. Implicit in it is the idea that you should be able to build your software in a straightforward way, ideally with one command.
As an example, about 12 years ago or so, I worked at a company that made medical diagnostic equipment. They had this system for use in maternity units for logging fetal heart rate monitors. What I arrived, building the whole things was a rather fraught business - it all had to be done by hand in Visual Studio (or whatever it was called then), and there were a dependencies between components so if you forgot to do a clean build, or export a TLB, or something you liable to bugger it all up and so on. So, after getting the code in CVS and bashing my colleagues with a stick until they got the idea of committing, I wrote a little Windows batch file to check everything out, and build it in the right order. Then, in something of a master stroke, I used the Windows at command to run it at 2 in the morning. Every night it did a full checkout and build. Made a massive difference. That was continuous integration - we just didn't have a name for it yet.
Automation doesn't need to be hard. Windows batch files are hardly the acme of programming sophistication, but it was enough and it was effective. It was a CI server. We just didn't call it that yet.
In this modern age, we can take it as read thaat CI is a good thing, and I'm entirely happy to argue that it is, then it's something we want to be doing. Since we have a single repository and we've automated the build, we can get some software to do the grunt work for us. So, rather than my little collection of batch files, we have CI servers, so everyone can CI all tha time whenever they want, right? I'm not going to labour this too hard, because I assume that fact you're here is demonstration enough that you believe this is the case.
Jenkins itself, as I'm sure you know was originally called Hudson. It was called Hudson because that sounded like the kind of name a butler would have . Hudson was your software butler, quietly making sure things ran smoothly while your and your team belt around like sozzled drones trying not get accidentally engaged and further enrage your Aunt Agatha.
While I was researching this talk, and after I'd written the bit about my Windows batch files I found the source of the first version of Hudson