Questions tagged [continuous-integration]

Continuous integration (CI) is the building and automated testing of the full software product on a frequent schedule: at least once a day, often several times a day and sometimes as often as after every check in to the version control system.

Concept

Continuous integration is an important part of an agile software development process. Integration is an important step to detect quality issues, so if it is done frequently, problems will be detected earlier and fewer at a time. Hence, continuous integration can help to reduce the overall cost of the process. Although continuous integration could be automated with simple scripting, it is generally more advantageous to use tools built for this purpose, especially for complex projects with many modular parts.

Tools

One of the first tools to become popular for this purpose was CruiseControl. Now there are many such products, both open source and proprietary.

References

Martin Fowler has a good writeup of what it all means in Continuous Integration.

11923 questions
452
votes
8 answers

How to choose between Hudson and Jenkins?

It took me an hour or so to work out Hudson has only branched recently (Jan/2011) I have no idea how rapid the change of each branch is now, but more importantly, what is the direction each branch is taking and what are key points so one could make…
Greg Domjan
  • 13,307
  • 6
  • 39
  • 59
378
votes
14 answers

Continuous Integration vs. Continuous Delivery vs. Continuous Deployment

What's the difference between these three terms? My university provides the following definitions: Continuous Integration basically just means that the developer's working copies are synchronized with a shared mainline several times a…
332
votes
6 answers

What is the difference between "npm install" and "npm ci"?

I'm working with continuous integration and discovered the npm ci command. I can't figure what the advantages are of using this command for my workflow. Is it faster? Does it make the test harder, okay, and after?
Webwoman
  • 5,914
  • 7
  • 26
  • 67
275
votes
3 answers

Jenkins vs Travis-CI. Which one would you use for a Open Source project?

For my project I need to choose between Jenkins and Travis-CI. I’ve been using Jenkins for years but I’ve also read good reviews about Travis-CI. Which one would you use for an Open Source project? What are the main benefits or advantages of both?
Juan Luis
  • 3,197
  • 4
  • 14
  • 16
259
votes
12 answers

How do I clone a job in Jenkins?

Jenkins has the Gerrit Plugin in place so that when we do check-ins to Gerrit, Jenkins performs a build and if it succeeds, then the modification in Gerrit is verified. If the build fails then it is not. My understanding is that this is…
GregH
  • 10,640
  • 21
  • 63
  • 96
242
votes
14 answers

How to set environment variables in Jenkins?

I would like to be able to do something like: AOEU=$(echo aoeu) and have Jenkins set AOEU=aoeu. The Environment Variables section in Jenkins doesn't do that. Instead, it sets AOEU='$(echo aoeu)'. How can I get Jenkins to evaluate a shell command…
Noel Yap
  • 15,499
  • 17
  • 77
  • 123
202
votes
9 answers

Setting up a deployment / build / CI cycle for PHP projects

I am a lone developer most of my time, working on a number of big, mainly PHP-based projects. I want to professionalize and automate how changes to the code base are handled, and create a Continuous Integration process that makes the transition to…
Pekka
  • 418,526
  • 129
  • 929
  • 1,058
172
votes
5 answers

Skip a submodule during a Maven build

We have a need to be able to skip a submodule in certain environments. The module in question contains integration tests and takes half an hour to run. So we want to include it when building on the CI server, but when developers build locally (and…
denishaskin
  • 2,855
  • 3
  • 19
  • 33
169
votes
8 answers

How to uninstall Jenkins?

This is probably very simple, but I can't find any hint anywhere. So how one is supposed to do that, in general and specifically on Mac?
jayarjo
  • 14,000
  • 20
  • 83
  • 123
149
votes
22 answers

Continuous Integration for Ruby on Rails?

I've been searching around for a Continuous Integration solution for Ruby on Rails, but haven't been too pleased with the results. I came from a .NET shop that used CruiseControl.NET and was really spoiled with its ease of use and rich…
Jim Fiorato
  • 4,766
  • 4
  • 25
  • 19
144
votes
9 answers

How and why do I set up a C# build machine?

I'm working with a small (4 person) development team on a C# project. I've proposed setting up a build machine which will do nightly builds and tests of the project, because I understand that this is a Good Thing. Trouble is, we don't have a whole…
mmr
  • 14,271
  • 28
  • 89
  • 142
142
votes
2 answers

mvn clean install vs. deploy vs. release

I am just learning maven, and we have recently needed to go more and more. I would like to know the difference between mvn clean install mvn release mvn deploy Please be as descriptive as possible.
myusuf3
  • 16,859
  • 25
  • 70
  • 100
139
votes
12 answers

How do you maintain development code and production code?

What are the best practices and rules-of-thumb to follow while maintaining code? Is it good practice to have only the production ready code in the development branch, or should untested latest code be available in the development branch? How do you…
138
votes
7 answers

Authenticate Jenkins CI for Github private repository

I'd like for Jenkins to automagically fetch data from my private repository hosted on Github. But I have no idea how to accomplish that task.. Tried the documentation, generating ssh-key for jenkins user and all what I can see is: "unable to clone…
bx2
  • 5,771
  • 5
  • 31
  • 36
135
votes
4 answers

Archive the artifacts in Jenkins

Could someone please explain to me the idea of artifacts in the build process? I have the workspace directory where I check out the code to compile and run my ant scripts etc. At the end, in my case, I get a jar file that's ready to install. Is that…
Michael
  • 19,964
  • 33
  • 119
  • 171
1
2 3
99 100