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
13,986
questions
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,...
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 ...
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 ...
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 ...
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)'.
...
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 ...
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
...
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 ...
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 ...
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 ...
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?
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.
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 ...
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 -...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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....
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?
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 ...
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.
...
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".
...
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?
$ ...
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....
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 ...
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 ...