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
6
votes
2 answers

GitLab CI: avoid duplication of skip-ci for each job

Currently, I'm duplicating the information about skip-ci in every single job, like so job1: except: variables: - $CI_COMMIT_MESSAGE =~ /skip-ci/ ... job2: except: variables: - $CI_COMMIT_MESSAGE =~ /skip-ci/ …
6
votes
3 answers

GitHub Action - Unable to add "if" condition in steps

I'm using composite GitHub actions, where I want to check the current branch name in composite action's some steps and make the decision on that condition. e.g. name: main on: push: repository_dispatch: types: - manual-trigger jobs: …
I Love Stackoverflow
  • 6,738
  • 20
  • 97
  • 216
6
votes
1 answer

Disable Github Action workflow, only run when desired

I have some very expensive benchmarks/tests which I'd only like to run on some PRs, not all. Is there a way to do this with github actions?
6
votes
1 answer

What is the difference between FROM-CACHE and UP-TO-DATE in gradle?

I am running a multi module gradle build with caching turned on. Some tasks says UP-TO-DATE and some say FROM-CACHE for example. > Task :components:security:testFixturesClasses UP-TO-DATE > Task :components:security:checkstyleTestFixtures…
ams
  • 60,316
  • 68
  • 200
  • 288
6
votes
2 answers

GitHub Action - Error undefined: No tag found in ref or input

I am trying to create a GitHub action that will detect when a change has happened on a certain branch and then build a release. The problem I’m getting is that in my yml file I use this line: ncipollo/release-action@v1. This requires a tag to be…
6
votes
2 answers

Getting InternalsVisibleTo to work when the build process signs the assembly with strong names?

In our shop, we are using Cruise Control & MSBuild to automate the builds of the product as part of continuous integration. Part of the build is to sign the assemblies so they have strong names. In our project files when we develop locally, it does…
6
votes
5 answers

Jenkins not executing Ant task

I'm setting up Jenkins for the first time and running into an issue where Jenkins does not appear to even attempt to execute the Ant task I've specified. I've defined my JDK and Ant installations under Manage Jenkins. I've setup my Job to Invoke Ant…
Sarah Haskins
  • 1,355
  • 2
  • 16
  • 25
6
votes
1 answer

Docker sqlite3.OperationalError: unable to open database file

I know there are more similar questions but none of them solve the problem that I am having. I have assembled a very basic Python application with Flask: from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'HELLO…
6
votes
1 answer

Gitlab deploy script - envsubst: command not found

I have a gitlab repo with CI/CD pipeline. It has deploy.sh script, which runs smoothly until envsubst command: #!/bin/bash set -e <...> # deploy via ssh SSH="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR -l…
6
votes
1 answer

How to specify compilation database for clang-tidy

I am struggling with running clang-tidy for my project. I am trying to run clang-tidy for my project for send data to Codacy. I am doing it like this: clang-tidy $PWD -header-filter=.*,-checks=-*,clang-analyzer-*,-clang-analyzer-cplusplus* |…
Vento
  • 155
  • 2
  • 8
6
votes
0 answers

Is there a way to Control the Build Artifact Name that is Saved in S3 from AWS CodePIPELINE

What I'm trying to accomplish is setting the Artifact Name that gets generated via the codepipeline not the codebuild. I understand that we can control the name at the codebuild level but I want it specifically for the codepipeline. I have confirmed…
6
votes
1 answer

Ignore junit tests via @ExcludeCategory within a test suite

I want to run Junit test suites that contain various test classes. Of all tests, i want to exclude test methods annotated with a certain annotation. I am aware of the @Ignore annotation but i do not want to use it here because i want to be able to…
nemoo
  • 3,269
  • 4
  • 38
  • 51
6
votes
1 answer

Rubocop: Is it possible to tell Rubocop to return zero as exit code when only warnings are found?

Question Is it possible to tell Rubocop to return 0 as exit code when only warnings are found? Prerequisites I am using the following command to run Rubocop on Travis CI: bundle exec rubocop I have a cop which is configured as a warning in…
Marian13
  • 7,740
  • 2
  • 47
  • 51
6
votes
2 answers

How to write conditional statements in bitbucket pipelines.yml file?

I am new to bitbucket pipelines and trying to deploy my code via bitbucket pipelines by using javaScript. My question is can we declare variables like (ex: var flag = false) and then write if/else statements based the flag value. Below is my…
6
votes
2 answers

can I create a feature branch from a open issue in Gitlab?

I can't find a 'create branch' button in the page; guessing I am missing something obvious? from gitlab members section, I myself is displayed as 'maintainer' of the project; I initially imported this project from a github repo using github url. Is…
sqr
  • 365
  • 2
  • 12
  • 29