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
53
votes
7 answers

How to create a Batch File for Visual Studio Command Prompt

I want to create a batch file for Visual Studio 2008 x64 Cross Tools Command Prompt to do something continuesly in my PC, here is the senario. svn update delete some files MSBuild MySolutiuon.sln delete some files xcopy somefiles MSBuild…
53
votes
4 answers

GitLab CI Pipeline on specific branch only

I'm trying to implement GitLab CI Pipelines to build and deploy an Angular app. In our project we have two general branches: master (for production only) and develop. For development we create feature/some-feature branches from develop branch. When…
ProximaCygni
  • 887
  • 1
  • 6
  • 9
53
votes
9 answers

Jenkins console output not in realtime

Pretty new to Jenkins and I have simple yet annoying problem. When I run job (Build) on Jenkins I am triggering ruby command to execute my test script. Problem is Jenkins is not displaying output in real time from console. Here is trigger…
Haris Krajina
  • 14,824
  • 12
  • 64
  • 81
52
votes
4 answers

Jenkins security - hide all screens unless user is logged in

I don't know why "logged in users can do anything" means Jenkins will happily allow non-authenticated users to view project details and access artifacts... Regardless, I need to know how to get Jenkins to allow logged in users to to anything AND…
cbmanica
  • 3,502
  • 7
  • 36
  • 54
51
votes
3 answers

Android CI build: Could not find aapt2-proto.jar

I have failing build on a Bitbucket CI server: > Could not resolve all artifacts for configuration ':classpath'. > Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1). Searched in the following locations: …
estn
  • 1,203
  • 1
  • 12
  • 25
51
votes
8 answers

Where can I download the .NET 4.5 Multitargeting Pack for my build server?

I want to build a .net 4.5/VS2012 solution in TeamCity. My builds work on the agent that has VS2012 installed, but on the agent that doesn't have VS2012, I get warnings like…
Michael Haren
  • 105,752
  • 40
  • 168
  • 205
50
votes
3 answers

How to automatically update NuGet packages to latest available version

I have two repositories, and I need compiled libraries from one repository in the other. I don't want to manually check repo1 for updated libraries, and copy/commit to repo2, because that is stupid. I've got repo1 building NuGet packages on each…
themilkyninja
  • 886
  • 2
  • 9
  • 15
49
votes
3 answers

What do I need to cache in my CI job to avoid ngcc recompiling each time?

With angular 9 and it's new compilation engine IVY, my CI build times have increased substantially. This is of course is because ngcc is ran on many modules. e.g. Compiling @angular/core : es2015 as esm2015 Compiling @angular/common : es2015 as…
49
votes
1 answer

Gitlab-ci: extend script section

I have an unity ci-project. .gitlab-ci.yml contains base .build job with one script command. Also I have multiple specified jobs for build each platform which extended base .build. I want to execute some platform-specific commands for android, so I…
orion_tvv
  • 1,681
  • 4
  • 17
  • 29
49
votes
3 answers

How can I set up Jenkins CI to use https on Windows?

We've recently set up a Jenkins CI server on Windows. Now in order to use Active Directory authentication I'd like to require https (SSL/TLS) for access. Given this setup, what is the recommended way to do this?
Nick Jones
  • 4,395
  • 6
  • 33
  • 44
49
votes
3 answers

What is git-rerere and how does it work?

As I understood, it is useful for the synchronization of projects through the saving of conflict resolution information, but it is not entirely clear to me how to use and configure it. I want to configure for my continuous integration (CI)…
Carlos Laspina
  • 2,013
  • 4
  • 27
  • 44
48
votes
8 answers

Travis Could not authorize build request

I'm getting this error for each and every project in my Github organization. Could not authorize build request myorg/myproject I searched everywhere but couldn't find any solutions or what causes this. How to troubleshoot this issue/integration?
sithumc
  • 3,254
  • 8
  • 27
  • 46
48
votes
3 answers

Feature Toggles vs Feature Branches

What are "Feature Toggles" and "Feature Branches" and what's the difference between them? What are the pros and cons? Why is one better than the other? I found some articles on Google regarding this, and I tend to be in the "Feature Toggles" camp,…
48
votes
7 answers

How to connect Bitbucket to Jenkins properly

Since about 1 week now, Bitbucket doesn't (?) send a request to my Jenkins server. I've set it all up like this: Endpoint http://username:apitoken@jenkinshost/ username = username in Jenkins apitoken = apitoken connected to the username in…
Highmastdon
  • 6,960
  • 7
  • 40
  • 68
47
votes
4 answers

How to Ignore Line Length PHP_CodeSniffer

I have been using PHP_CodeSniffer with jenkins, my build.xml was configured for phpcs as below
dextervip
  • 4,999
  • 16
  • 65
  • 93