Most Popular

1500 questions
14
votes
3 answers

Getting a single revision from Git

Having the full Git revision history has a lot of benefits as part of the development process. But our product is the source code, we are using scripted languages that don't need compilation or processing, and then the Git history becomes a burden…
Rsf
  • 340
  • 1
  • 9
14
votes
4 answers

Why does development oppose operations?

I'm still a student, but I'm not knowledgeable about operations, and my English is still bad. My question is: Why does development oppose operations? When does developing oppose operations?
ra1ned
  • 259
  • 1
  • 9
14
votes
2 answers

How do I automate deployments with Kubernetes?

Assuming I have Kubernetes deployed via Rancher and Jenkins is building new images and pushing them to DockerHub upon check-in of new code to GitHub, how do I automate getting new images deployed? Another way to ask the question might be, “I used to…
Greg
  • 141
  • 2
14
votes
3 answers

How do you test changes to Jenkins plugins before deploying them?

If you ever been bitten by a plugin upgrade that broke some functionality you must have given some thought about this problem: What should be the Jenkins plugins upgrade policy? How do you test changes before deploying them? Has anyone gone as far…
Michael Pereira
  • 651
  • 4
  • 12
14
votes
2 answers

How to enable the npm cache in a Jenkins build slave that runs in docker?

I have a Docker image, let's call it frontend.image, that I use for a Jenkins build slave. The Jenkins Docker plugin will spin up a container from this image and build artifacts inside the container. This all works great. In this case, the…
Brian Ogden
  • 381
  • 1
  • 4
  • 11
14
votes
2 answers

Is it bad to use sudo from Jenkins?

I use Publish Over SSH plugin to deploy my apps from Jenkins to different environments. Some deployment jobs do environment preps and things like stop and restart the app server system service. Some of those commands require sudo. I am just curious…
amphibient
  • 453
  • 6
  • 12
14
votes
2 answers

Get all change logs of since last successful build in Jenkins Pipeline

In my Jenkins pipeline, I can get change logs of the current build by this. def changeLogSets = currentBuild.changeSets Is there a way to get all change-logs since last successful build?
Bee
  • 243
  • 1
  • 2
  • 5
14
votes
5 answers

Cannot connect to chocolatey.org or any other internet site from within container

xpost from https://forums.docker.com/t/cannot-connect-to-chocolatey-org/38745 Expected behavior I'm running Windows Server 2016 Datacenter (MSDN download) 64 bit - Version 1607 - Build 14393.1715 I'm using Docker For Windows and running Windows…
jcolebrand
  • 1,275
  • 10
  • 14
14
votes
1 answer

Is there a tool that makes it possible to validate Jenkinsfiles online?

At the moment I am editing a Jenkinsfile and then let it run unless Jenkins reports a issue. This approach costs a lot of time. I prefer to validate the syntax before committing the Jenkinsfile. Is there a tool that solves this issue? In gitlab…
030
  • 13,383
  • 17
  • 76
  • 178
14
votes
1 answer

How do you manage your inventory of spot instances on AWS with Ansible

I am new to Ansible, with some experience in Chef. I am considering learn and use Ansible to manage environments. I was wondering, what would be the best practice to manage inventory of AWS spot instances? For example, when a spot instance is shut…
Berlin
  • 780
  • 6
  • 15
14
votes
2 answers

How to store credentials that are required by an application?

Everyone is saying that storing credentials in version control (git) is a bad thing. So there must be other ways to store credentials which are much better. An application must receive credentials from somewhere to use services it depends on. These…
Evgeny Zislis
  • 9,023
  • 5
  • 39
  • 72
14
votes
1 answer

Testing Jenkins jobs and pipelines

Currently, we have a fair number of Jenkins jobs and pipelines for builds, testing, deployments and other automated activities. Every time we change or add a new job, we only test it manually - e. g. going over the "happy path" (when job is done…
alecxe
  • 849
  • 1
  • 16
  • 36
14
votes
7 answers

Why should a developer care about Docker?

Generally a developer cares about satisfying business requirements. He / she might have the expertise in a particular stack or a framework. But should he / she make an effort to learn docker and it's various deployment methods (swarm, kube, mesos,…
Abhay Pai
  • 303
  • 2
  • 5
14
votes
2 answers

How to check Jenkins build executor free memory?

In Jenkins when clicking on Build Executor Status I can only see free disk space related statistics (URI: /computer). How I can monitor free system memory (RAM) in Jenkins? I'm asking, because sometimes when I had too many executors (despite having…
kenorb
  • 8,011
  • 14
  • 43
  • 80
14
votes
3 answers

How do I troubleshoot missing data in my Prometheus database?

I have been gradually integrating Prometheus into my monitoring workflows, in order to gather detailed metrics about running infrastructure. During this, I have noticed that I often run into a peculiar issue: sometimes an exporter that Prometheus is…
Sander
  • 241
  • 1
  • 3
  • 6