Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

11 votes
Accepted

Why is build size such a concern?

When I raise build size issue as a concern, it usually doesn't come from "it is so big, it will be expensive to store it". The main problems with large builds are the following - increased shipping ...
user avatar
11 votes

How to get rid of develop branch for simplified Git flow

Let's say you take out the master branch (you can rename develop to master to confuse your team if you like later) and simply use tags for releases either on develop or hotfix branches. You took out ...
user avatar
  • 5,607
9 votes
Accepted

How to restrict filesystem access in Atlassian Bamboo builds?

There is currently no ability to restrict jobs which are able to run on the same agent from potentially interacting with each other. There are a bunch of feature requests asking for this sort of ...
user avatar
  • 1,634
8 votes
Accepted

What exactly are "Truly reproducible builds"?

What exactly are they? Here is a quote from reproducible-builds.org: Reproducible builds are a set of software development practices that create a verifiable path from human readable source code ...
user avatar
  • 6,903
8 votes

Crash course in Dev for Ops?

Since you've tagged this question as "culture", I'm assuming you're not interested in a specific application, but in the broader questions of workflow and management. I'd probably start with "The ...
user avatar
7 votes

How to create staging servers for multiple git branches?

1) How can I run several different branches on the staging server? Docker 2) How would I set up the DB evolution system to make sure it always has appropriate DB for each branch? This depends on ...
user avatar
  • 3,655
7 votes
Accepted

Is it possible to build Jenkins jobs without using build numbers?

It's not possible to avoid setting the BUILD_NUMBER environment variable, but you can avoid using it. Try using the Jenkins plugin Build Name Setter Plugin. It adds an option in your build ...
user avatar
  • 1,082
7 votes
Accepted

How to get rid of develop branch for simplified Git flow

IMHO the problems you're facing are just a side effect of the poor branch strategy you started with: you're effectively plowing new development on develop (i.e. what converges towards the future ...
user avatar
7 votes
Accepted

Is Windows in general always slower than linux?

TL;DR depends on the use case with up to 12 times between best/worst Comprehensive testing has been done over at Phoronix (28.03.18) and the results are very mixed. The tests looked at: Clear Linux ...
user avatar
  • 1,157
7 votes

Crash course in Dev for Ops?

This is not about DevOps, but straight software development, I assume. I want to understand the culture better Well, the big thing in straight development (without the "DevOps" angle) is ...
user avatar
  • 4,696
6 votes

Why is build size such a concern?

Complementing Evgeny's answer with a few more examples. What you mean by build size may matter a bit: if it is the size of the artifact(s) being built (each one individually or their combined size) ...
user avatar
6 votes
Accepted

How to execute a Jenkins job until the build is green

This pipeline will run each day at 1 AM. It'll restart if the build fails. pipeline { agent any triggers { cron('0 1 * * *') } stages { stage ('Build') { ...
user avatar
  • 706
5 votes

How to get rid of develop branch for simplified Git flow

You are already building and testing code on each of the pull-request and hot-fix branches. This means that in aggregate, the sum of all branches pending on pull-request are your virtual develop ...
user avatar
4 votes
Accepted

Maven command for Sonarqube analysis

Well, you can pass multiple goals to maven in command line simply by passing them as arguments. Skipping test require a java system property that you can also pass as an argument to the command line. ...
user avatar
  • 74
4 votes

What exactly are "Truly reproducible builds"?

To provide a practical example of an attempt at creating a truly repeatable build consider the following - A build pipeline which starts with a git repository for which no user can ever rewrite ...
user avatar
  • 1,634
4 votes

Why do companies use JFrog Artifactory or other repositories instead of Maven central repository?

Saved bandwith and faster downloads: Artifactory stores the artifacts that are downloaded from maven central. So if another developer needs the same dependencies they don't need to be downloaded again ...
user avatar
3 votes
Accepted

How to make the Jenkins agent build then start the server?

You are running into a conflict between jenkins nature of making sure everything is done before a job is complete and your desire for some long-running things to be asynchronous. There is no right ...
user avatar
  • 1,728
3 votes

Should compilers be kept in artifactory?

There are a few main reasons why you would use Artifactory (or any other binary repository manager) over a traditional file storage (in your case NFS). The ability to manage your artifact versions A ...
user avatar
  • 2,973
3 votes
Accepted

Using Anaconda instead of pip+virtualenv

In my field (science) Anaconda is probably the most common Python distribution in use. conda is the package manager (just to be clear of the distinction). It is difficult to find fault in conda when ...
user avatar
3 votes

Why is build size such a concern?

I'll add a very concrete issue that we actually run into. It's a sideeffect of bad architecture that we're suffering currently: Since our build is large and we need to load a lot of dependencies ...
user avatar
  • 619
3 votes

What does "build step" mean?

In a CI/CD pipeline a build step is whatever you want it to be. It is the equivalent of a function or procedure from a traditional programming language. Examples of build steps from a CI/CD ...
user avatar
  • 1,728
2 votes

How to get rid of develop branch for simplified Git flow

Well @dan-cornilescu says it well for your particular problem, but the more general case for Trunk-Based Development (mentioned in the Continuous Delivery, Lean Enterprise, and The DevOps Handbook) is ...
user avatar
  • 304
2 votes

RPM's, VM's : time consuming

For a laptop, desktop or standalone server, consider trying out Docker containers. These containers are designed to allow you to provide differing libraries, packages and shared objects uniquely to ...
user avatar
  • 3,655
2 votes

RPM's, VM's : time consuming

Have you considered setting up a build server (i.e. Jenkins, TeamCity) with disposable build agents? If you do it in the cloud (i.e. via ec2 integration), you can literally set up an AMI with generic ...
user avatar
  • 676
2 votes
Accepted

Jenkins Testing PR's - allowing broken builds

On GitHub - you can't. Basically, their PRs are temporary branches, and there's no check if base commit is HEAD of branch to merge in. This problem is solved with gating systems like Zuul, which puts ...
user avatar
2 votes

How to create staging servers for multiple git branches?

I'd argue that this isn't actually about staging servers. A staging server closely mimics the production environment, and is where a release goes immediately prior to going to production. A feature ...
user avatar
2 votes
Accepted

Build Design - Docker vs Fedora's Mock

Docker is going to be far more well-known than Mock. I consistently see Docker used during build in companies that I work for. I think I have seen Mock before, but only because I am a Fedora user. ...
user avatar
  • 1,345
2 votes
Accepted

Should compilers be kept in artifactory?

In many cases compilers are used as-is, already packaged by 3rd parties. When changing the structure of the build systems changing compilers usually translates into switching to a different version, ...
user avatar
2 votes
Accepted

Dockerfile COPY command with three input parameters

As per this docker documentation the copy instruction may have multiple sources but only one destination. Your first copy is coping two file /etc/passwd and /etc/group to /etc.
user avatar
  • 1,669
2 votes

How to have kubernetes (re)build containers on deployment similar to openshifts ImageStream

You need something that will do basically CI/CD. There are few options (in no particular order): Gitlab + autodeploy (or custom deployment) skaffold + git-sync + kaniko There are more, but basically,...
user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible