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
42
votes
3 answers

How to cleanup old Failed Builds in TeamCity?

We do have hundreds of failed builds in TeamCity (number is especially high because of old retry on fail settings) and now it's a pain to browse history. I want to clean up only old failed builds, is there anyway to do that in TeamCity? Normal…
dr. evil
  • 26,944
  • 33
  • 131
  • 201
42
votes
6 answers

Wiping out Maven local repository on build machine

On a CI build server, the local Maven repository fills up the file system repetitively (after a few days). What strategy are others doing to trim the local repository in such a case? -Max
Max Spring
  • 1,111
  • 2
  • 11
  • 18
41
votes
7 answers

Manual workflow triggers in Github Actions

I am setting up Github Actions for a project repository. The workflow consists of the following steps: Building a docker image Pushing the image to a container registry Rollout a Kubernetes deployment. However, I have two different Kubernetes…
Antoine C.
  • 3,730
  • 5
  • 32
  • 56
41
votes
3 answers

How can I configure Hudson to send an email for EVERY build, not just those that change the project's status?

I've recently migrated my CI server from an old version of CruiseControl to Hudson. The only feature I miss from CruiseControl is the ability to receive email build notices of EVERY build, not just those that cause the status of the project to…
Jared
  • 25,520
  • 24
  • 79
  • 114
41
votes
3 answers

Build versioning in continuous delivery

I have some concrete questions about versioning in Continuous Delivery. I think I understand global workflow that more or less is this: 1) Code 2) Push to version Control 3) Continuous Integration (unit, integration and end-to-end auto testing) 4)…
Héctor
  • 24,444
  • 35
  • 132
  • 243
41
votes
3 answers

Continuous integration and continuous delivery with git-flow

We have been doing continuous integration and continuous delivery since a while with Subversion commits as the pipelines triggers. Recently, we started using git in some projects with git-flow and we are trying to decide which of the branches of…
alejokf
  • 411
  • 1
  • 4
  • 6
41
votes
6 answers

Hudson on Windows - Error: java.io.IOException: Cannot run program "sh"

I am trying to do continuous integration with Hudson and MSTest. When I try to run this job I get the following error: 1 Warnung(en) 0 Fehler Verstrichene Zeit 00:00:00.13 [workspace] $ sh -xe C:\Windows\TEMP\hudson4419897732634199534.sh The…
Markus_DE_HH
  • 1,061
  • 3
  • 13
  • 29
40
votes
4 answers

MSBuild ItemGroup, excluding .svn directories and files within

How can I construct a MSBuild ItemGroup to exclude .svn directories and all files within (recursively). I've got: At the moment, but this does…
Kieran Benton
  • 8,739
  • 12
  • 53
  • 77
40
votes
9 answers

GitHub actions: default branch variable

Is there any smart way to determine the default branch in GitHub actions? Now I need to write something like: on: push: branches: - master is there a way to write something like the code below? on: push: branches: -…
kharandziuk
  • 12,020
  • 17
  • 63
  • 121
40
votes
1 answer

How to use the GitHub Actions `workflow_run` event?

Another frequently-requested feature for Actions is a way to trigger one workflow based on the completion of another workflow. For example, you may want to take the results of a CI workflow and run some further analysis. The new workflow_run event…
BobAnkh
  • 511
  • 1
  • 4
  • 9
40
votes
3 answers

How to get the target branch of the GitHub pull request from an Actions?

When an action is set on pull_request in Github Actions, how to get the target branch? The use case is to retrieve the PR- (and hopefully, branch)-specific commits.
Mouloud85
  • 3,826
  • 5
  • 22
  • 42
40
votes
7 answers

Is there any way to run parallel cypress tests on local machine, for example 5 streams

I'm trying to setup cypress on my local machine and run parallel tests. But I can't find some information how to do this.
Lev Boichenko
  • 497
  • 1
  • 5
  • 9
40
votes
4 answers

How to set up SVN credentials in Jenkins?

Is there a way to set up credentials that will be used by Jenkins when it performs SVN commit? I could't find a way to do so. If I run Jenkins server on my machine, which has SVN client installed and my credentials are cached, it seems to work…
Dima
  • 1,774
  • 5
  • 21
  • 31
40
votes
7 answers

CodeBuild execution continues after build fails instead of stopping

I'm building a CI/CD pipeline using git, codebuild and elastic beanstalk. During codebuild execution when build fails due to syntax error of a test case, I see codebuild progress to next stage and ultimately go on to produce the artifacts. My…
40
votes
8 answers

Cannot run program "mvn" error=2, No such file or directory

I'm doing a build on my Ubuntu 14.04 LTS but I'm getting the following: Started by user anonymous Building in workspace /var/lib/jenkins/workspace/videovixx > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the…
Mario Dennis
  • 2,986
  • 13
  • 35
  • 50