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.

From Jenkins Documentation:

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks such as building, testing, and deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with the Java Runtime Environment installed.

Jenkins is one of the more popular systems for continuous integration and many are available that extend the out-of-the-box functionality. Jenkins is actually a fork of the product and was created because the developers feared a dispute with Oracle about the Hudson trademark.

Usage:

Use this tag for questions about Jenkins in general, or about using Jenkins for tasks like building, testing and deploying software. For questions specifically about writing or using 3rd party Jenkins plugins, please use the tag.

665 questions
40
votes
7 answers

How to safe restart Jenkins?

I need to make some configuration changes on our Jenkins instance that will involve restarting Jenkins a couple of times. However, our developers are committing frequently enough that I haven't seen Jenkins without jobs running in three days. Is…
Alex
  • 4,512
  • 6
  • 27
  • 47
36
votes
3 answers

How can we get the jenkins console output in a text file?

How can i get the Jenkins console output in a text file? I want to share it with someone, is there any way to do it?
Jay
  • 994
  • 2
  • 10
  • 20
28
votes
3 answers

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 in a Jenkins job, this is cloned in pre-build…
Héctor Valverde
  • 383
  • 1
  • 3
  • 8
25
votes
4 answers

Jenkins Health Check URL

I'm planning to supervise services by periodically checking if they are up and running, Jenkins is our central orchestration tool and must be running with near zero downtime. How can I check health status of a Jenkins server - By health status I…
storm
  • 1,759
  • 3
  • 15
  • 34
18
votes
4 answers

Best Practices for a multi environment deployment using Jenkins

I have 3 environments, each on their own Virtual Network with their own configurations. Do I need to have 3 separate instances of Jenkins if I am to do Continuous Deployments on each of the environments? What are some best practices regrading…
10
votes
3 answers

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 follow in BitBucket and Jenkins to achieve this? This…
kumar
  • 109
  • 1
  • 1
  • 5
7
votes
2 answers

Separate Jenkins config from build logs

My JENKINS_HOME is (something like) /var/lib/jenkins In there, there is jobs directory, in it a subdirectory for each job. In each job subdirectory, you have config.xml plus the builds subdirectory. I would like to somehow separate my config.xml…
amphibient
  • 453
  • 5
  • 12
6
votes
3 answers

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 remotely? At least that is what "fire and forget" seems…
Pierre.Vriens
  • 7,205
  • 14
  • 37
  • 84
6
votes
2 answers

Launch jenkins agent from jenkins job?

Is it possible to launch a jenkins agent from within a script in another job? I'm open to either shell or pipeline options. To be clear I don't mean the agent the job is running on itself. I'm talking about spinning up a completely separate agent.…
Alex
  • 4,512
  • 6
  • 27
  • 47
6
votes
2 answers

How to move the "All" tab to the right in Jenkins?

Is it possible to move the "All" Jenkins tab from the main view all the way right? It's just my browsing preference to see it at the end to not obstruct my always specific habit of using views. In other words, I would like my first view to be what I…
amphibient
  • 453
  • 5
  • 12
5
votes
1 answer

How to get the classic Jenkins build status icons back?

From my POV the classic Jenkins build status icons were, and still are, a masterpiece of icon art: All the others weren't, and still aren't, bad either. (How is the saying? "If it ain't broke, don't break it!"? :) While I appreciate that the new…
Gerold Broser
  • 171
  • 10
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

In jenkins, how to re-run old builds of a job?

Some old builds are failed in my jenkins job and I need to re-run them again. How to do that?
Naik
  • 101
  • 2
  • 2
  • 5
4
votes
1 answer

when does currentBuild.changeSets in Jenkins gets filled?

Some background: The project I'm working on is in SVN. Very very large. A lot of tests are running on Jenkins. I want to implement a new tests which should be executed only if files in certain directory have been changed. The idea that I had…
cauchi
  • 143
  • 1
  • 1
  • 5
4
votes
1 answer

How many builds does jenkins need to run before it has estimated times?

We just updated our Jenkins to v2.207.1 and our build estimation times on pipeline jobs have stopped showing up. Rather than a blue bar that when hovered over shows an estimate, we are now seeing the blue-and-white striped barber pole and an…
Alex
  • 4,512
  • 6
  • 27
  • 47
1
2 3 4 5 6