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.

13768 questions
58
votes
15 answers

Treating warnings as errors because process.env.CI = true. Failed to compile

I am working on a react-weather application for self learning purpose. Deployed the same in gh-pages. URL https://davisraimon.github.io/react-weather/ Repo https://github.com/davisraimon/react-weather When tried to integrate my application with…
58
votes
3 answers

Do manual build fail in Jenkins using shell script

I would like to mark a Jenkins build to fail on one scenario for example: if [ -f "$file" ] then echo "$file found." else echo "$file not found." #Do Jenkins Build Fail fi Is it possible via Shell Script? Answer: If we exit with…
Selvakumar Ponnusamy
  • 5,363
  • 7
  • 40
  • 78
58
votes
4 answers

How to deploy a node.js app with maven?

Most of our team consists of java developers and therefore the whole build / deployment / dependency management system is built on top of maven. We use CI so every build process runs unit test (w. karma and phantomJS for the frontend, and…
Rafal Pastuszak
  • 3,100
  • 2
  • 29
  • 31
57
votes
5 answers

Running Code Analysis (FxCop > 10) on build agent without installing Visual Studio

After FxCop 10 Microsoft stopped shipping a separate installer for FxCop. Officially one can currently only run code analysis (FxCop 12.0 / 14.0 / 15.0) after installing Visual Studio 2013 / 2015 / 2017. However, we are adamant about not installing…
BatteryBackupUnit
  • 12,934
  • 1
  • 42
  • 68
57
votes
9 answers

Continuous Integration for Xcode projects?

After using Hudson for continuous integration with a prior project, I want to set up a continuous integration server for the iPhone projects I'm working on now. After doing some research it looks like there aren't any CI engines designed…
Mike Akers
  • 12,039
  • 14
  • 58
  • 71
56
votes
5 answers

Best Continuous Integration Setup for a solo developer (.NET)

I'm looking for a lightweight, easy to setup CI server that I can run on my laptop along with Visual Studio & Resharper. I'm obviously looking at all the big names like CruiseControl, TeamCity etc etc but the biggest consideration to me is ease of…
mwjackson
  • 5,403
  • 10
  • 53
  • 58
56
votes
12 answers

"No source for code" message in Coverage.py

I ran a build last night, successfully. I got up this morning and ran another without changing any configuration or modifying any source code. Now my build is failing with the message "No source for code" when running my nosetests with coverage.…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
55
votes
7 answers

Change Jenkins port on macOS

I was wondering how one could change Jenkins' default port 8080. Using linux or windows, this is simply done with the configuration file. But the Mac config file of Jenkins looks completely different from the other ones. Of course one could pass the…
Tom Ferguson
  • 853
  • 2
  • 8
  • 7
55
votes
1 answer

Jenkins User on Apt-Get Install Installation

I just installed Jenkins on my Ubuntu server via the debian installation steps (using apt-get install). I want my build to pull from a private git repository on GitHub. With that, I need to use SSH access to get to my repository. Most of my search…
Dave Long
  • 9,569
  • 14
  • 59
  • 89
55
votes
4 answers

Managing SSH keys within Jenkins for Git

I'm trying to get Jenkins up and running with a GitHub hosted repository (using the Jenkins Git plugin). The repository has multiple git submodules, so I'm not sure I want to try and manage multiple deploy keys. My personal GitHub user account is a…
James
  • 1,950
  • 3
  • 22
  • 39
54
votes
10 answers

Jenkins - j_acegi_security_check

I am trying to setup jenkins, but I cant get the authentication to work. I am running jenkins on Tomcat6 on CentOS 6.2. I enable logging in, and everything goes fine until I try to log in. After giving my credential and pressing login, tomcat gives…
varesa
  • 2,399
  • 7
  • 26
  • 45
54
votes
3 answers

How to connect to Postgres in GitHub Actions

I am trying GitHub Actions for CI with a Ruby on Rails application. My setup is with VM, not running the Ruby build in a container. This is my workflow yml. It runs all the way without errors until the step "Setup Database". name: Rails CI on: …
54
votes
6 answers

How to set and read user environment variable in Azure DevOps Pipeline?

I have some test automation code that reads some values from an environment variable stored on my local machine, like this: Environment.GetEnvironmentVariable("SAUCE_USERNAME", EnvironmentVariableTarget.User); I'm trying to use Azure Pipelines to…
53
votes
6 answers

Code Coverage Tools for Scala

What are the available code coverage tools for Scala? I have Scala spec tests and a Hudson continuous integration set-up. Is there something I can hook-in to this setup to measure and track code coverage?
or9ob
  • 2,313
  • 4
  • 25
  • 45
53
votes
14 answers

How to configure Jenkins to run on port 80

I'm running Ubuntu 11.10 and have run sudo apt-get install jenkins to install Jenkins on this system. I've seen some tutorials on how to setup a reverse proxy (Apache, Nginx, etc), however this is a VM dedicated for just jenkins and I'd like keep it…
hafichuk
  • 10,351
  • 10
  • 38
  • 53