Questions tagged [jenkins]

Jenkins is an open source continuous integration tool written in Java, that has packages for Linux, Mac OS X, Windows, FreeBSD and OpenBSD. The project was forked from Hudson.

The Jenkins project started life as in 2004, but the user and developer community decided to rename the project to Jenkins in early 2011 after asserted trademark claims to the name Hudson (see for questions related to the previous name).

Jenkins lets you automate many tasks, such as compilation, tests and deployments. Jobs can be scheduled using cron-like scheduling, or using triggers, such as whenever a source code repository is updated.

Jenkins is Java-based and recent versions require Java 8 (or later) on the master. The Jenkins master can manage multiple build nodes (slaves). Jobs can be run across multiple machines in order to perform jobs in parallel, distribute load, or build and test cross-platform software. Capacity can be easily added — Jenkins can automatically set up a new build slave on any SSH-accessible machine; it can even launch new machines to run jobs on, e.g. via cloud-computing or virtualisation plugins.

Jenkins supports a long list of plugins in a wide variety of categories to support different source control systems, run specialised build tools, send notifications, provide build reports and analytics, customise build workflows, etc. Many are hosted as open source under the Jenkins organisation on GitHub.

Jenkins is an open-source project with an enhanced enterprise product managed by CloudBees. The open source software is hosted on GitHub and distributed under the MIT license. There is an active development community with public documentation, getting started tutorials and a wiki. A new version is released approximately once a week, with more stable "long-term support" releases roughly every six months.

50386 questions
104
votes
26 answers

Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) while building Android project on Jenkins

I have an Android Project that builds successfully on Android Studio. Now I want to build it on Jenkins. But when I'm doing I got the following error: Gradle build daemon disappeared unexpectedly (it may have been killed or may have…
Sandro Gedevanishvili
  • 1,172
  • 2
  • 8
  • 9
102
votes
12 answers

Jenkins - passing variables between jobs?

I have two jobs in jenkins, both of which need the same parameter. How can I run the first job with a parameter so that when it triggers the second job, the same parameter is used?
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
102
votes
16 answers

How to mark a build unstable in Jenkins when running shell scripts

In a project I'm working on, we are using shell scripts to execute different tasks. Some are sh/bash scripts that run rsync, and some are PHP scripts. One of the PHP scripts is running some integration tests that output to JUnit XML, code coverage…
HNygard
  • 4,526
  • 6
  • 32
  • 40
102
votes
30 answers

Jenkins: 403 No valid crumb was included in the request

I configured Jenkins in Spinnaker as follows and setup the Spinnaker pipeline. jenkins: # If you are integrating Jenkins, set its location here using the baseUrl # field and provide the username/password credentials. # You must also…
Balkrishna
  • 2,897
  • 3
  • 23
  • 31
101
votes
14 answers

How to reset build number in jenkins?

I am using Jenkins and Gradle to build my java project. Every time I build my project, I get a new build number on the Jenkins screen. The following is my Jenkins build info: Success > Console Output #96 03-Jan-2014 15:35:08 Success >…
Sivakumar M
  • 1,567
  • 4
  • 18
  • 22
101
votes
11 answers

Jenkins returned status code 128 with github

With GitHub command I have: ssh -T git@github.com Hi (MyName)! You've successfully authenticated, but GitHub does not provide shell access. My connection with GitHub is ok (no problem), but with Jenkins I have this error: ERROR: Error cloning…
nizar ouerghi
  • 1,721
  • 2
  • 14
  • 12
100
votes
9 answers

Hudson or Teamcity for continuous integration?

We are a Java shop looking for a CI tool to use. Both Hudson and Teamcity seem to be free but Teamcity seems slicker and with more support. I was wondering why one would still use Hudson and if anyone could provide any argument for/against either?
pdeva
  • 43,605
  • 46
  • 133
  • 171
99
votes
5 answers

Using a Jenkins pipeline to checkout multiple git repos into same job

I'm using the Jenkins Multiple SCM plugin to check out three git repositories into three sub directories in my Jenkins job. I then execute one set of commands to build a single set of artifacts with information and code drawn from all three…
Gordon
  • 3,012
  • 2
  • 26
  • 35
99
votes
2 answers

Where can I find jenkins restful api reference?

I am trying to integrate an external system with jenkins by REST API. Although I have done lots of google search on its API reference, I still cannot get a full list of jenkins REST API reference. Anybody knows about this?
Chuck
  • 1,508
  • 4
  • 15
  • 19
98
votes
10 answers

How to access parameters in a Parameterized Build?

How do you access parameters set in the "This build is parameterized" section of a "Workflow" Jenkins job? TEST CASE Create a WORKFLOW job. Enable "This build is parameterized". Add a STRING PARAMETER foo with default value bar text. Add the code…
Vizionz
  • 1,137
  • 1
  • 7
  • 11
97
votes
10 answers

How to trigger Jenkins builds remotely and to pass parameters

I am invoking a Jenkins job remotely using: wget http://:8080/job/Test-Jenkins/build?token=DOIT Here Test-Jenkins job is invoked and DOIT is the security token that I have used. Now I need to pass some parameters to the build.xml file of…
97
votes
20 answers

Jenkins not executing jobs (pending - waiting for next executor)

Jenkins won't execute any jobs. Having viewed this question, I have disabled all slave nodes but a simple job won't even run on the Master node. What is wrong?
Michael Easter
  • 23,733
  • 7
  • 76
  • 107
95
votes
12 answers

Increase the Jenkins login timeout

Does anyone know how to increase the the timeout window before Jenkins logs out a user? I'm looking to raise it to 1 day or so. I work in and out jenkins all day and we keep getting logged out between running of jobs. Added to this frustration,…
Ray
  • 40,256
  • 21
  • 101
  • 138
94
votes
9 answers

How to stop Jenkins installed on Mac Snow Leopard?

I have installed Jenkins executable on OSX, but now I want to stop it running. Whenever I kill it, no matter how, it just restarts immediately. I've tried using the exit command on the jenkins url: http://localhost:8080/exit which asks me to post…
raksja
  • 3,969
  • 5
  • 38
  • 44
94
votes
4 answers

How to create methods in Jenkins Declarative pipeline?

In Jenkins scripted pipeline we are able to create methods and can call them. Is it possible also in the Jenkins declarative pipeline? And how?