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
35
votes
4 answers

Gitlab CI/CD: New runner has not been connected yet

I am very new to Gitlab CI/CD and I have read its documentation very carefully about creating a new CI/CD process using .gitlab-ci.yml file. As I have found out in order to have Continuous Deployment (also known as CD), it is needed to register a…
35
votes
3 answers

How to set environment variable in node.js process when deploying with github action

I am trying to build an CI pipeline for my node.js server using github actions. I just need to solve one issue. I need to set environment variable, so that my node.js server can access the env variable via process.env Below is the github action…
Sihoon Kim
  • 1,481
  • 2
  • 13
  • 32
35
votes
5 answers

Xcode Build Error Jenkins: Your session has expired. Please log in

I'm trying to build my application using jenkins pipeline using shell command. Below is the command i'm using to build the app. sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos -…
35
votes
1 answer

How to version products inside monorepo?

I have been educating myself about monorepos as I believe it is a great solution for my team and the current state of our projects. We have multiple web products (Client portal, Internal Portal, API, Core shared code). Where I am struggling to find…
35
votes
1 answer

Microsoft Code Contracts and CI build server

We are migrating to .NET 4 and very interested in implementing new Design By Contract capabilities. As we know Code Contract engine requires installation of Code Contract addin and VS Ultimate or Premium (for static checking). Here is my…
Sergey Mirvoda
  • 3,209
  • 2
  • 26
  • 30
35
votes
9 answers

How do you generate release notes?

[Question] Does anyone product release notes via an automated process? If so how. Especially with continuous integration services. Do you just use a script to parse the log files for issues fixed for that release to create the appropriate text…
Gavin Chin
  • 558
  • 1
  • 6
  • 16
34
votes
1 answer

How to perform kaniko Docker build and push in separate GitLab CI stages?

I have a Dockerfile which I can build using kaniko in the GitLab CI/CD pipeline. Currently the build stage both builds the Container and pushes it to the remote Docker repository. I would like to utilize the stages concept of the CI/CD pipeline to…
kmindi
  • 4,524
  • 4
  • 31
  • 47
34
votes
2 answers

Running a GitHub Actions step only if previous step has run

I've set up a workflow in GitHub actions to run my tests and create an artifact of the test coverage. The stripped down version of my YAML file looks like this: name: Build on: [pull_request] jobs: build: runs-on: ubuntu-latest steps: …
34
votes
2 answers

I am using Azure Devops to build and push my Docker image. How can I pass arguments while doing buildAndPush using Docker task?

I have created a pipeline to build a Docker image and push it to my container registry. I am using Docker task for doing this (buildAndPush command). Here is a YAML snippet of the 'Build and Push' step: - task: Docker@2 displayName: Build and…
Ajinkya
  • 1,231
  • 1
  • 9
  • 10
34
votes
4 answers

Default Jenkins User Password

I have a fresh install of Jenkins as a service on my Linux machine. When Jenkins installs, it creates a 'jenkins' user, but I can't seem to find the default password for it anywhere. I'm trying to secure my system, so if the default password is…
JD Russo
  • 422
  • 1
  • 5
  • 9
34
votes
5 answers

Stubbing/mocking up webservices for an iOS app

I'm working on an iOS app whose primary purpose is communication with a set of remote webservices. For integration testing, I'd like to be able to run my app against some sort of fake webservices that have a predictable result. So far I've seen two…
EightyEight
  • 3,430
  • 4
  • 36
  • 67
33
votes
8 answers

Sharing build artifacts between jobs in Hudson

I'm trying to set up our build process in hudson. Job 1 will be a super fast (hopefully) continuous integration build job that will be built frequently. Job 2, will be responsible for running a comprehensive test suite, at a regular interval or…
33
votes
7 answers

npm test -- --coverage never exits

I am using create-react-app to create a react application. When I executes npm test -- --coverage the test never exists. npm test actually runs react-scripts test. Any Idea?
Anup
  • 1,502
  • 2
  • 15
  • 31
33
votes
1 answer

How to set variable within 'script' section of gitlab-ci.yml file

I am trying to set an environment variable for my GitLab Runner based on the branch that the commit originated from. I have 4 kubernetes clusters: staging, integration, production, and qa. Essentially I want to deploy my application to the proper…
danielsmith1789
  • 1,056
  • 1
  • 12
  • 25
33
votes
0 answers

AIR Build Server Setup

I am at the point where I am running into incredibly long build times for my project and more projects to come. I would like to make a build server but I have not had any experience with them aside from downloading files from them as an end user. My…
sfxworks
  • 1,031
  • 8
  • 27