Most Popular
1500 questions
4
votes
2 answers
JenkinsFile to get git branch name
I want to get git current checkout BRANCH NAME in my Jenkins file here is the code snippet...
Here I am trying to push a file to my current branch
I have tried many things could not find it...
stage('Push yaml file to bitbucket'){
steps{
…
Madan
- 101
- 1
- 2
- 5
4
votes
1 answer
Jenkins error using Junit plugin: Test reports were found but none of them are new. Did LeafNodes run?
I'm trying to get our test reports (generated using google test with the xml output switch) into Jenkins, but keep getting the error message:
Test reports were found but none of them are new. Did leafNodes run?
Jenkins says the test xml files are…
Mike Knee
- 41
- 1
- 2
4
votes
1 answer
Trigger Jenkins Job from Azure DevOps
I want to trigger Jenkins Job when anyone pushes the code in Azure DevOps Repository. However, when I set up Jenkins Service Connection in Azure DevOps I am getting the following error:
Failed to query service connection API: 'JenkinsURL'. Error…
ankit thakkar
- 119
- 3
- 11
4
votes
2 answers
Access private DockerHub repo in Docker Swarm
I am trying to deploy a docker swarm using Digital Ocean's docker-machine driver.
This is currently a single node that contains several public DockerHub images, and one private.
I am having difficulties in configuring it to accept the private…
DannyB
- 141
- 1
- 2
4
votes
1 answer
How do I do a dry run with docker-compose?
I want to know what docker-compose is going to do before I do it.
Is there a tool or flag which I can use to see what docker-compose would do without actually stopping containers and starting new ones?
Daniel James Bryars
- 143
- 1
- 5
4
votes
1 answer
How to handle availability zones and failover with ansible? Is it even within the scope of ansible?
I am only getting started with ansible.
I want to set up a new development infrastructure with the infrastructure as code principle. First thing I'll have to prove is a Jenkins instance with a few nodes for a Java dev team.
I want to do it correct…
dfsg76
- 207
- 1
- 6
4
votes
2 answers
What 'ChatOps' books and resources are available?
We have defined what ChatOps is in the form of the following question:
What are ChatOps approach use cases of production infrastructure management?:
Practically it means something very different to each team using it. So much so that Atlassian…
Richard Slater
- 11,612
- 6
- 41
- 81
4
votes
2 answers
On-Prem and Cloud Deployments
If I have a mix of cloud and "on-prem" (across different networks) systems to deploy to is there a common tool, technique, or software available? I've used Kubernetes for cloud deployments, but am unsure of what approach to take when On-Prem…
Wesley Rolnick
- 2,747
- 11
- 26
4
votes
1 answer
How to share variables across instances?
I'm writing TestInfra test scripts for mongo cluster instances using Molecule Ansible. I want to share variables across all the instances. I created a python class, and initialise and update the variables. Every time molecule verify, each test will…
Abel
- 141
- 2
4
votes
0 answers
Multi-branch release pipeline in Azure Devops for multiple artifact triggers
Overall problem
I seem to run around myself in circles with this problem. Either I'm doing something wrong, or Azure Devops simply does not support it.
For the simplest case (we've got many products and sub-products with various forms of complexity…
Johny Skovdal
- 141
- 1
4
votes
1 answer
How to deploy a custom build of a Jenkins core plugin?
How to deploy a custom build of a core plugin bundled in Jenkins?
kenorb
- 7,841
- 12
- 40
- 77
4
votes
1 answer
Triggering a SNS notification when an object is accessed (downloaded) in AWS S3
I have managed to trigger events on my bucket when objects are uploaded (PUT) but I am surprised that there are no triggers called when objects are downloaded (GETs), as can be seen in this screenshot of the interface:
I want to be notified of each…
W.M.
- 187
- 4
4
votes
3 answers
What are some reasons for using an Ansible role for Certbot vs. Ansible's native `acme_certificate` module?
To get Let's Encrypt HTTPS certificates for their Web sites, I'm aware of quite a few folks using a particular role, which wraps Certbot, a standalone application not native to Ansible.
There is, however, a native Ansible module called…
colan
- 173
- 1
- 6
4
votes
1 answer
Terraform apply exit code on error
I'm using Terraform as part of a Jenkins Pipeline. When terraform apply encounters an error, it does not return a non-zero exit code. When running into a problem on Jenkins, it does not stop the pipeline or mark the build as FAILURE.
If terraform…
Dan Mandle
- 179
- 1
- 5
4
votes
1 answer
How to terminate EC2 instance in Jenkins via Vagrant when job is stopped manually?
I've freestyle jobs which aims to run EC2 instances via Vagrant (vagrant up), however when I cancel the job manually (by clicking X button), the instances on EC2 are still running. How can I make sure that the instances are terminated when the job…
kenorb
- 7,841
- 12
- 40
- 77