Questions tagged [jenkins]

For questions about Jenkins, an open source automation server, and using Jenkins for topics such as building, testing, and deploying software, etc. For questions specifically about Jenkins Plugins use the jenkins-plugins tag.

Filter by
Sorted by
Tagged with
3
votes
2answers
679 views

Jenkins pushing to branch overwrites commits made in interim

A while ago I had written about how commits were being merged (successfully) into our develop branch in Git, but would later go missing, with no evidence of the missing code other than all the ...
5
votes
1answer
2k views

Jenkins Promote Build across different pipeline?

In my workplace, we are using a monolithic repo. It contains many project and micro services that run on different Jenkins pipeline. I know that using Promoted Build Plugin, we can promote build of ...
1
vote
1answer
495 views

error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)

I am using Jenkins automation build for iOS. Previously I have been using xcode 8.1 with no error showing. But i have updated the xcode to 8.3 and I'm facing errors now. I have the scripts as below: ...
13
votes
3answers
9k views

Using Artifactory plugin in Jenkins declarative pipeline

I am using Jenkins Declarative Pipeline to automate my build process. We want to publish our artifacts to a remote JFrog repository only if certain conditions (Sonar,Checkmarx) pass. After a bit of ...
11
votes
1answer
7k views

Jenkins Pipeline job; proper quoting for slackSend step

This is probably 100% user error, but I can't get a pipeline job to use a variable as the channel name in a slackSend step. This uses both the Slack plugin and the Build User Vars Plugin. I'm trying ...
8
votes
1answer
628 views

Jenkins Artifactory plugin not downloading in multi-thread

In my company we're having a bad time trying to download with the Artifactory plugin in Jenkins because we have a lot of tiny files in our repository and apparently the plugin works in a single thread,...
12
votes
1answer
1k views

Pass string to Jenkins job from Slack

In an ideal world our less tech-knowledgeable employees could just use a Slack command to run a job and get the results slacked back to them, negating the use of the Jenkins GUI. I found Start a build ...
8
votes
1answer
1k views

Use Vault SSH OTP backend with Jenkins

I'm setting up Vault to store secrets. SSH backend with OTP auth looks like a good way to stop managing SSH keys for access. I have SSH backend working, and am looking at hooking up Jenkins with the ...
6
votes
1answer
1k views

Jenkins cannot reach nodes after upgrade

I just upgraded Jenkins from 2.39 to 2.57. After the upgrade, Jenkins can no longer communicate with my SSH build nodes. I get the following error: <===[JENKINS REMOTING CAPACITY]===>channel ...
0
votes
1answer
7k views

Maven command for Sonarqube analysis

I am planning to build a Maven project in Jenkins. I tried to do some research how to give goals for Maven for doing few steps in one command but cant get understood how to do. What I mean is how ...
5
votes
3answers
3k views

Jenkins Pipeline downstream job; exit unless it hasn't run in the last x hours

Is there a way in Groovy directly or by integrating Jenkins plugins to have a downstream job complete only if it hasn't been run in the last X hours already? Let's say I have unit tests, when green, ...
23
votes
2answers
29k views

How to build a complex parallel Jenkins pipeline?

I've been interested in converting our bespoke Jenkins integrations into a pipeline. However, I can't seem to figure out how to do it. Can anyone help me with the Jenkins script that could do the ...
15
votes
3answers
2k views

How to check AWS spot pricing automatically?

I've been thinking about a Jenkins job to check the pricing for the agent boxes we spin up; every so often the price spikes and it'll be an hour or two before anyone notices that no new agents are ...
77
votes
6answers
163k views

Cleanest way to prematurely exit a Jenkins Pipeline job as a success?

I have a job that will create files, unless one of the values being fed to it matches an older value. What's the cleanest way in Jenkins to abort or exit the job, without it being FAILED? It exiting ...
11
votes
1answer
2k views

Is there a way to disable a Jenkins plugin for a single job?

I use the Build timeout plugin to alert when jobs are stuck. I have one job that triggers this alert because it contains a step with a long execution time. I would like to disable the build timeout ...
4
votes
1answer
2k views

Terraform apply exit code on error [closed]

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 ...
5
votes
2answers
1k views

Does TFS Build have something like a Jenkinsfile?

I've seen some custom settings files used in combination with TFS build, but nothing native. Does Team Foundation Server or Visual Studio Team Services have a Jenkinsfile-like, declarative method for ...
0
votes
1answer
1k views

How to define failure situation on jenkins

I created a project in Jenkins and set it to run tests on every pushes. but even when one of the pushes does not pass the tests, Jenkins build returns success. How can define failure situation if ...
13
votes
2answers
327 views

Continuous Integration infrastructure for multiple iOS projects

As a iOS developer, I was looking to create a CI and CCQ (= Continuous Code Quality) infrastructure for the iOS projects we have in development so far. We already use Jenkins and SonarQube for almost ...
2
votes
1answer
396 views

Upgrading jenkins using chef

Can you please help me out how to upgrade an existing application which is jenkins using chef. I am trying to upgrade Jenkins from 1.x to 2.x and I have a cookbook for 1.x. what steps do I need to ...
10
votes
2answers
5k views

Git & Jenkins: get latest green commit on branch

We're just starting to push for CI-CD and as a baby step we're going to try updating a stack with the latest green develop once every couple of hours. I am fairly new to Git/Bitbucket, and can't ...
11
votes
1answer
4k views

How to include a custom Slack message only on completion?

We're running Jenkins with the Slack Notification Plugin. Is there a way to send the custom message only on completion, not on start? To be clear, I don't want to disable the build started message, I'...
3
votes
2answers
124 views

How to capture tools release to trigger upgrade?

We capture our applications release by using commits from source code management, new package into the artifactory system etc., How can we capture my tools release from vendor so that I will trigger ...
6
votes
1answer
3k views

Continuous Integraton using Jenkins Pipeline for a .NET project

The project: A .NET standalone application consisting in: The main application that is a Windows Service containing a web server used for the web interface. Project is 90% .NET (Framework, Standard ...
7
votes
1answer
2k views

How can I autoscale instances based on Kafka topic lag?

I have autoscaling groups that I want to dynamically scale up/down based on the amount of lag showing in certain Kafka topics. There's a 1:1 relationship between topic and autoscaling group that needs ...
11
votes
2answers
7k views

What are the correct permission settings when running Docker in a Jenkins Pipeline?

I'm trying to get a new jenkins pipeline together to test new pull requests to our code. I'm using docker with the ubuntu:14.04 image to simulate our production environment. Here is a minimum working ...
11
votes
3answers
1k views

What are the main differences between Jenkins and TeamCity if one is used to working with Jenkins?

These tools seem to share very similar characteristics. How complicated would it be to start using TeamCity after getting used to working on Jenkins? Are there specific concepts one needs to be ...
10
votes
3answers
13k views

Bitbucket Pull Request Builder Configuration Jenkins

I need to integrate BitBucket with Jenkins, so that whenever a PR is opened in BitBucket, it will trigger a build in Jenkins. Can someone help describe the exact configuration step that I should ...
6
votes
3answers
1k views

Why trigger something remotely (using Jenkins) and then just forget about it?

When using Jenkins to trigger some process (eg a remote build) at a remote location, why would you ever want to "fire" something, and then just "forget" about the outcome of what got triggered ...
7
votes
1answer
3k views

What are alternatives for Docker in Docker (dind) usage for Jenkins slave running in container?

When using Jenkins slave running in container, what are alternatives or "safe" (in terms of security) implementations for Docker in Docker. Architecture example: Jenkins master running as Docker ...
20
votes
3answers
24k views

Set a Jenkins job to not to clone the repo in SCM

I have integrated Jenkins with Bitbucket using the Bitbucket Plugin. As per the plugin's Wiki, a given job will be triggered if the repository is set in the SCM of the job. As you know, if one set SCM ...
8
votes
3answers
1k views

How to remotely update AMI id in Jenkins EC2 plugin?

I have been looking for a way to update AMI id in Jenkins EC2 plugin configuration after a packer build is run. After some digging, I found a promising way to do it IF the packer run is done by ...
6
votes
1answer
1k views

How can Jenkins help to implement CI/CD for Drupal?

Assume you want to implement continuous-integration (= CI) and continuous-deployment (= CD) for building and maintaining websites using Drupal (let's assume for Drupal Version 7). Often times Jenkins ...
13
votes
3answers
8k views

How to not “fire and forget” when doing a remote trigger of a Jenkins build?

I am attempting to trigger a parameterized Jenkins build from Bamboo, doing the below: POST - http://jenkins-url.com/job/jobname/buildWithParameters?ENVIRONMENT=dev&APPLICATION=hello-world ...
28
votes
4answers
9k views

How to properly scale Jenkins?

In my project we have one AWS server running Jenkins Master + 1 Jenkins slave (2 executors)... and we need more In order to augment our build power we have three options: Scale up: Make AWS instance ...
11
votes
1answer
703 views

Is Elastic Beanstalk suitable for enterprise-grade CD?

I'm working with a project that's using Jenkins to build and deploy microservices to Elastic Beanstalk. We deploy an integration branch to a test environment, release branches to a staging environment,...
13
votes
4answers
3k views

Which plugin should I use to get started with Jenkins to manage mainframe components in PDS format?

Assume somebody familiar with DevOps and mainframes, but new to Jenkins, wants to get started with Jenkins, e.g. to: investigate the feasibility of managing data stored in personal files (PDSes, i.e. ...
9
votes
2answers
13k views

How to rebuild multiple jobs at the same time in Jenkins?

I'm using Jenkins Rebuild Plugin to execute a parametrized builds with a single Rebuild button. However when I need to rerun dozens of parametrized jobs (either selected, or from the same folder), it'...
14
votes
2answers
16k views

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 ...
9
votes
2answers
329 views

What CIs could build libraries written in C++/VBA and .NET (C#) projects?

I work in the IT department of automation/dev company and we are just about to implement/add CI into our set of tools. And we are having difficulties to choose the one. At the moment we've been ...
11
votes
1answer
364 views

How to upgrade job-dsl files to Jenkins 2 pipelines?

Is there a common practice for migrating a large repository of Jenkins job-dsl to Jenkins2 pipelines? I am looking for ways to test the behaviour of builds, that go a little further than comparison of ...
4
votes
1answer
472 views

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 ...
18
votes
2answers
19k views

Is it possible to upgrade Jenkins from Jenkins it-self?

On Manage Jenkins I've a message that: New version of Jenkins (2.47) is available for download (changelog). Is there any way of upgrading Jenkins from the GUI similar as it's done for the plugins? ...
2
votes
2answers
2k views

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

I have a job which is running very frequently, so I'd like to avoid high number of builds. Is there any way to drop job build numbers, so the job is constantly ran, but without high numbers of builds?
5
votes
1answer
2k views

How to add a new column with custom value extracted from the job?

The current list of Jenkins jobs has 4 columns: Name Last Success Last Failure Last Duration Is there any way to add a new column which would have some custom value extracted from the job?
5
votes
1answer
2k views

How to connect a build node to a Jenkins master?

I'd like to connect a build node to the Jenkins master. Ideally without using a web browser or being in front of the physical machine. What would be the easiest way to achieve that?
9
votes
2answers
1k views

How to publish Jenkins job icons externally?

I'm using Promoted Builds Plugin to assign certain icons to Jenkins jobs on certain conditions and I'd like to publish these promotion icons. How can I generate external links to these icons per each ...
5
votes
1answer
833 views

How to promote a build when certain value in output is above threshold?

I'm using the Promoted Builds Plugin and I'd like to promote my freestyle job to have a gold star when a certain value in my output is above a given threshold (e.g. above 1.00). Here is a sample ...
2
votes
1answer
5k views

What are the different job permissions possible in Jenkins, and what are the reasons you would use each?

I'd like to understand better job permissions in Jenkins. What type of user permissions can I setup in Jenkins? And when would you use each?
14
votes
3answers
934 views

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 ...

1
8 9 10
11
12