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.

continuous-integration
Filter by
Sorted by
Tagged with
736 votes
9 answers
399k views

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,...
DiaJos's user avatar
  • 11k
455 votes
8 answers
208k views

How to choose between Hudson and Jenkins? [closed]

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 ...
Greg Domjan's user avatar
408 votes
12 answers
157k views

Continuous Integration vs. Continuous Delivery vs. Continuous Deployment

What is 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 ...
typeduke's user avatar
  • 6,652
287 votes
12 answers
271k views

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 ...
GregH's user avatar
  • 12.5k
280 votes
16 answers
756k views

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)'. ...
Noel Yap's user avatar
  • 19.2k
222 votes
8 answers
160k views

This job is stuck, because the project doesn't have any runners online assigned to it. Go to Runners page [closed]

I am learning GitLab CI/CD. I installed GitLab and GitLab Runner from Officials. Whenever I run the pipeline during Maven build, the job gets stuck. I have a registered runner and it is available to ...
Navigator's user avatar
  • 2,981
213 votes
5 answers
97k views

Dependencies Between Workflows on Github Actions

I have a monorepo with two workflows: .github/workflows/test.yml name: test on: [push, pull_request] jobs: test-packages: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 ...
Guillaume Vincent's user avatar
206 votes
6 answers
164k views

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 ...
denishaskin's user avatar
  • 3,355
204 votes
9 answers
42k views

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 ...
196 votes
6 answers
101k views

Github actions share workspace/artifacts between jobs?

Trying to use Github's beta actions, I have two jobs, one that builds the code and then one that will deploy code. However, I can't seem to get the build artifact in deploy job. My latest attempt is ...
Labithiotis's user avatar
  • 3,739
188 votes
15 answers
341k views

Jenkins Pipeline Wipe Out Workspace

We are running Jenkins 2.x and love the new Pipeline plugin. However, with so many branches in a repository, disk space fills up quickly. Is there any plugin that's compatible with Pipeline that I ...
qmo's user avatar
  • 3,138
171 votes
8 answers
118k views

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's user avatar
  • 16.5k
166 votes
2 answers
189k views

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.
Mahdi Yusuf's user avatar
  • 20.4k
159 votes
8 answers
365k views

Jenkins CI Pipeline Scripts not permitted to use method groovy.lang.GroovyObject

I am Using Jenkins 2 for compiling Java Projects, I want to read the version from a pom.xml, I was following this example: https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md The ...
Daniel Hernández's user avatar
152 votes
7 answers
169k views

Docker: Using --password via the CLI is insecure. Use --password-stdin

I have the following warning when I log in to my registry during a continuous integration (CI) process: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Should I just replace -...
Dimitri Kopriwa's user avatar
151 votes
12 answers
61k views

How do you maintain development code and production code? [closed]

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 ...
149 votes
22 answers
41k views

Continuous Integration for Ruby on Rails? [closed]

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 ...
Jim Fiorato's user avatar
  • 4,862
148 votes
12 answers
184k views

Setting the version number for .NET Core projects - CSPROJ - not JSON projects

This question is very similar to Setting the version number for .NET Core projects, but not the same. Using the latest stable version of .NET Core at the time of writing (1.1) and VS2017, .NET Core ...
Jay's user avatar
  • 9,851
144 votes
5 answers
99k views

How to run GitHub Actions workflow only if the pushed files are in a specific folder

I have a folder structure that looks something like this. - folder1 - file1 - *other files* - folder2 - file1 - *other files* - .gitignore - package.json - *other files* I want to run my ...
TheComputerM's user avatar
  • 1,611
144 votes
9 answers
41k views

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

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 ...
mmr's user avatar
  • 14.8k
142 votes
8 answers
105k views

Get the current pushed tag in Github Actions

Is there a way to access the current tag that has been pushed in a Github Action? In CircleCI you can access this value with the $CIRCLE_TAG variable. My Workflow yaml is being triggered by a tag like ...
Jon B's user avatar
  • 2,644
142 votes
7 answers
118k views

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 ...
bx2's user avatar
  • 6,426
138 votes
1 answer
72k views

Set default Timeout on Github action pipeline

Normally, my pipelines take 15 minutes to execute. Recently, for some strange reasons, some pipelines take between 45 minutes and 6 hours to fail. Is it possible to set a default timeout limit on ...
Kevin ABRIOUX's user avatar
137 votes
4 answers
225k views

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, ...
Michael's user avatar
  • 22.6k
134 votes
12 answers
45k views

Best practices when using Terraform [closed]

I'm in the process of swapping over our infrastructure into terraform. What's the best practice for actually managing the terraform files and state? I realize it's infrastructure as code, and i'll ...
Marc Young's user avatar
  • 3,904
129 votes
2 answers
29k views

Travis.yml ./gradlew : Permission denied

Using Travis CI for an existing Android project calling $ ./gradlew build connectedCheck I get this error: /home/travis/build.sh: line 45: ./gradlew: Permission denied The command "./gradlew build ...
Gabriele Mariotti's user avatar
126 votes
10 answers
128k views

How to select different app.config for several build configurations

I have a dll-type project that contains MSTest integration tests. On my machine the tests pass, and I want the same to happen on a CI server (I use TeamCity). But the tests fail, because I need to ...
oleksii's user avatar
  • 35.7k
123 votes
5 answers
37k views

Showing Travis build status in GitHub repo

I remember recently seeing the Travis build status of a pr or commit in GitHub browsing the repository (but can't find where). I'm not talking about the Travis build status images in README.md but an ...
andig's user avatar
  • 13.6k
119 votes
8 answers
80k views

Jenkins scripted pipeline or declarative pipeline

I'm trying to convert my old style project base workflow to a pipeline based on Jenkins. While going through docs I found there are two different syntaxes named scripted and declarative. Such as the ...
Nayana Adassuriya's user avatar
117 votes
11 answers
30k views

CruiseControl [.Net] vs TeamCity for continuous integration?

I would like to ask you which automated build environment you consider better, based on practical experience. I'm planning to do some .Net and some Java development, so I would like to have a tool ...
zappan's user avatar
  • 3,677
117 votes
6 answers
78k views

Bamboo Vs. Hudson(a.k.a. Jenkins) vs Any other CI systems [closed]

Anyone out there have experience with both Hudson and Bamboo? Any thoughts on the relative strengths and weaknesses of these products? Okay, since folks keep mentioning other CI products I'll open ...
Karthik Ramachandran's user avatar
116 votes
12 answers
122k views

How can I auto increment the C# assembly version via our CI platform (Hudson)?

Myself and my group are horrendous at incrementing assembly version numbers and we frequently ship assemblies with 1.0.0.0 versions. Obviously, this causes a lot of headaches. We're getting a lot ...
Allen Rice's user avatar
  • 19.2k
115 votes
3 answers
57k views

Spread load evenly by using ‘H * * * *’ rather than ‘5 * * * *’

When setting up how Jenkins shoul pull changes from subversion I tried checked Poll SCM and set schedule to 5 * * * *, I get the following warning Spread load evenly by using ‘H * * * *’ rather ...
I'm busy coding's user avatar
114 votes
14 answers
33k views

"Pretty" Continuous Integration for Python

This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at.. For example, compared to.. phpUnderControl Jenkins Hudson CruiseControl.rb ..and others, BuildBot ...
dbr's user avatar
  • 168k
112 votes
3 answers
106k views

Multiple Docker images in .gitlab-ci.yml

Here is my problem setup with GitLab and its integrated CI service. I have a current GitLab 8.1. and a gitlabci-multi-runner (0.6.2) with Docker support. After extending the ubuntu:precise image to ...
M.K. aka Grisu's user avatar
112 votes
9 answers
88k views

How do you run NUnit tests from Jenkins?

I'm looking to run automated NUnit tests for a C# application, nightly and on each commit to svn. Is this something that Jenkins-CI can do? Is there an online tutorial or how-to document which ...
blueberryfields's user avatar
108 votes
3 answers
62k views

How to upgrade msbuild to C# 6?

I want to use C# 6 in my project (null propagation, other features). I've installed VS 2015 on my PC and it works brilliantly and builds test code like var user = new SingleUserModel(); //all model ...
Anna Prosvetova's user avatar
108 votes
4 answers
87k views

maven :: run only single test in multi-module project

Is there any way to provide some command-line argument in order to skip all tests but one on some module? So I will not need to change pom.xml every time I will need to run another test? For example, ...
jdevelop's user avatar
  • 12.2k
106 votes
18 answers
61k views

What is the purpose of a dedicated "Build Server"? [closed]

I haven't worked for very large organizations and I've never worked for a company that had a "Build Server". What is their purpose? Why aren't the developers building the project on their ...
KingNestor's user avatar
  • 66.8k
106 votes
2 answers
43k views

Role of docker-in-docker (dind) service in gitlab ci

According to the official gitlab documentation, one way to enable docker build within ci pipelines, is to make use of the dind service (in terms of gitlab-ci services). However, as it is always the ...
pkaramol's user avatar
  • 17.8k
105 votes
12 answers
68k views

Best branching strategy when doing continuous integration?

What is the best branching strategy to use when you want to do continuous integration? Release Branching: develop on trunk, keep a branch for each release. Feature Branching: develop each feature in ...
KingNestor's user avatar
  • 66.8k
104 votes
1 answer
41k views

How do I shallow clone a repo on a specific branch?

How do I shallow clone a git repository, so that my clone contains only 1 history item, and starts on a specific branch? I know how to do a shallow clone: git clone --depth 1 https://path/to/myrepo....
joseph.hainline's user avatar
102 votes
12 answers
247k views

Jenkins - passing variables between jobs?

I have two jobs in jenkins, both of which need the same parameter. How can I run the first job with a parameter so that when it triggers the second job, the same parameter is used?
Stefan Kendall's user avatar
100 votes
9 answers
42k views

Hudson or Teamcity for continuous integration? [closed]

We are a Java shop looking for a CI tool to use. Both Hudson and Teamcity seem to be free but Teamcity seems slicker and with more support. I was wondering why one would still use Hudson and if ...
pdeva's user avatar
  • 44.4k
100 votes
10 answers
214k views

How to trigger Jenkins builds remotely and to pass parameters

I am invoking a Jenkins job remotely using: wget http://<ServerIP>:8080/job/Test-Jenkins/build?token=DOIT Here Test-Jenkins job is invoked and DOIT is the security token that I have used. ...
Exploring's user avatar
  • 2,771
99 votes
8 answers
126k views

Setting dynamic scope variables in AngularJs - scope.<some_string>

I have a string I have gotten from a routeParam or a directive attribute or whatever, and I want to create a variable on the scope based on this. So: $scope.<the_string> = "something". ...
Erik Honn's user avatar
  • 7,576
98 votes
6 answers
105k views

How can I suppress the "No files matching the pattern" message in ESLint?

In my CI setup, I have a test that runs eslint against all JS files. If no JS files exist, it's currently throwing an error. I'd prefer if it'd succeeded when no JS files exist. Is this possible? $ ...
JacobTheDev's user avatar
  • 17.9k
98 votes
4 answers
35k views

.NET 4.0 build issues on CI server

Anybody manage to get .NET 4.0 applications compiling on a CI server without installing Visual Studio 2010 on a CI server? No SDK exists for .NET 4.0. Have installed .NET 4.0 on CI Server. Msbuild....
DMcKenna's user avatar
  • 989
98 votes
4 answers
61k views

Reuse portion of github action across jobs

I have a workflow for CI in a monorepo, for this workflow two projects end up being built. The jobs run fine, however, I'm wondering if there is a way to remove the duplication in this workflow.yml ...
Brad Martin's user avatar
  • 5,787
97 votes
6 answers
72k views

Running a command in a Grunt Task

I'm using Grunt (task-based command line build tool for JavaScript projects) in my project. I've created a custom tag and I am wondering if it is possible to run a command into it. To clarify, I'm ...
JuanO's user avatar
  • 2,500

1
2 3 4 5
280