Most Popular

1500 questions
4
votes
2 answers

Help! No development infrastructure in company! I've been tasked to implement it!

Background: I've recently started at a company and I've bee tasked to essentially modernize the development team/dept. Currently the problems are: Developers currently develop on a live site. Sites are backed up but they have no source control. No…
HQ216493
  • 53
  • 6
4
votes
1 answer

How to test whether a variable exists in the declarative pipeline

I am using the Build User Vars Plugin which sets various variables in the pipeline. Here is what I am currently trying: wrap([$class: 'BuildUser']) { def safeBuildUser = binding.hasVariable('BUILD_USER') ? BUILD_USER : "unknown" echo…
Wes W
  • 41
  • 1
  • 1
  • 3
4
votes
1 answer

What Golang function could be used to enforce a minimum code coverage and return an Exit1 if false?

Follow-up to this Q&A. How to ensure that a certain minimal code coverage is reached in Golang? E.g. if the CI runs, the build should fail if the code coverage is less than X percent. In Java, one could use Jacoco and define a minimum code coverage.…
030
  • 13,235
  • 16
  • 74
  • 173
4
votes
2 answers

problems running Ansible with become on domain-connected Windows Server

I am running several tasks on a Windows 2016 server with Ansible including: Joining it to a domain SOMEDOMAIN SOMEDOMAIN\SOMEUSER has been added to the local administrators group on the machine with Ansible. Running several tasks on the…
Vish
  • 601
  • 5
  • 14
4
votes
1 answer

Infrastructure Stability Report

We are using Azure IAAS to host our applications, and these are hosted on a number of virtual machines for different tiers Our client have recently asked us to provide monthly report on the Infrastructure Stability, so that they could know the…
Yogi
  • 141
  • 3
4
votes
1 answer

Specify default arguments for Ansible playbook

When I create playbooks I often add a comments section at the top on how to run the Ansible playbook. With more options becoming available in Ansible, the list of command-line arguments also seems to grow. It made me curious to see if there is a way…
Yvo
  • 143
  • 4
4
votes
1 answer

GitLab Runner is using its Docker host's hostname as Git server FQDN/hostname

When using a GitLab Runner with a "docker" executor, the following build error occurs: Running with gitlab-runner 10.7.0 (7c273476) on main 80500676 Using Docker executor with image centos:latest ... Pulling docker image centos:latest ... Using…
Neil
  • 141
  • 1
  • 2
4
votes
4 answers

Understanding DevOps opponents on stakeholder level beyond typical examples

What are typical stakeholders and their reasons not to support/enable DevOps principles?* Background: in small to medium organizations, certain level of DevOps is not a very big problem due to thinner silos and faster communications paths. But how…
Ta Mu
  • 6,772
  • 5
  • 39
  • 82
4
votes
2 answers

Best way to isolate programming projects?

Not sure if this is the best place for the question but I have multiple development projects with different dependencies.. I want to know what the best practice is to isolate each project? I have many unrelated projects that a designed and updated…
blah
  • 43
  • 4
4
votes
0 answers

Issues with COPY when using multistage Dockerfile builds -- no such file or directory

I'm trying to convert my project to use multi-stage builds. However, the final step always fails with an error: Step 11/13 : COPY --from=build /bin/grafana-server /bin/grafana-server COPY failed: stat…
MrDuk
  • 295
  • 2
  • 8
4
votes
2 answers

How to avoid the flakyness that comes with "gpg --recv-key"?

If you want to verify a signature of a downloaded file with gpg, you first have to import the key. Unfortunately, this operation is extremely slow and flaky in practice. For example, here I tried it out: $ gpg --keyserver pgpkeys.mit.edu --recv-key…
Philipp Claßen
  • 1,675
  • 2
  • 16
  • 30
4
votes
1 answer

Limits of, or preconditions for of Blue-Green deployment?

I find a lot information about the blue green deployment pattern but maybe miss a point. Please help me to understand. Could it be scenarios where you can't successfully duplicate the information flow? Examples: Captcha request from a local API;…
Ta Mu
  • 6,772
  • 5
  • 39
  • 82
4
votes
1 answer

How do I make read only mount in Docker container writable?

When developing code on a very large repository, I would like to run multiple builds/tests in parallel in containers. I need to get my repository or some other large directory into the container. If I mount it read/write, the parallel processes will…
Jiri Klouda
  • 5,807
  • 1
  • 21
  • 53
4
votes
4 answers

Jenkins declarative pipeline: use branch if it exist

I'm currently trying to adopt my declarative pipeline in the following way: I have multiple stages, some apply for all branches, some only for specific names. What I'm now searching for is a way to get a when condition for the existance of a branch…
Hoall
  • 43
  • 1
  • 1
  • 5
4
votes
3 answers

Challenges of using AWS Lambda chain

Context: I have a pipeline of 6 lambda functions (chained together), triggered by an SNS notification which is generated whenever a file lands on S3. This pipeline essentially takes the file(few GBs), filters it (Spark cluster is created to run the…
obaid
  • 41
  • 2