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
144
votes
2 answers

HTML in Jenkins job descriptions

I have two Jenkins instances running. An old (legacy) one at version 1.614 and a new one with 1.633. In the old one it is possible to use HTML in the job description (it even does syntax highlighting editing it). The new one doesn't. HTML content is…
user1587852
  • 1,567
  • 2
  • 11
  • 15
144
votes
3 answers

Hudson vs Jenkins in 2012

In 2011 situation with Hudson and Jenkins was following(IMHO) - Hudson was a little bit stable, but development of Jenkins was a little bit faster. What is the situation with "Hudson vs Jenkins" now in 2012?
Volodymyr Bezuglyy
  • 16,295
  • 33
  • 103
  • 133
142
votes
17 answers

How to start jenkins on different port rather than 8080 using command prompt in Windows?

I have jenkins.war and I started it from command prompt in Windows as: java -jar jenkins.war It was started well and easily browsed as http://localhost:8080 I want to start on 9090 port. How can I do that?
user2027659
141
votes
7 answers

Authenticate Jenkins CI for Github private repository

I'd like for Jenkins to automagically fetch data from my private repository hosted on Github. But I have no idea how to accomplish that task.. Tried the documentation, generating ssh-key for jenkins user and all what I can see is: "unable to clone…
bx2
  • 6,356
  • 5
  • 36
  • 40
140
votes
4 answers

Rebuild Docker container on file changes

For running an ASP.NET Core application, I generated a dockerfile which build the application and copys the source code in the container, which is fetched by Git using Jenkins. So in my workspace, I do the following in the dockerfile: WORKDIR…
Lion
  • 16,606
  • 23
  • 86
  • 148
140
votes
7 answers

Cannot define variable in pipeline stage

I'm trying to create a declarative Jenkins pipeline script but having issues with simple variable declaration. Here is my script: pipeline { agent none stages { stage("first") { def foo = "foo" // fails with "WorkflowScript:…
Malcolm Crum
  • 4,345
  • 4
  • 30
  • 49
140
votes
5 answers

GitLab CI vs. Jenkins

What is the difference between Jenkins and other CI like GitLab CI, drone.io coming with the Git distribution. On some research I could only come up that GitLab community edition doesn't allow Jenkins to be added, but GitLab enterprise edition does.…
Ravikiran butti
  • 1,668
  • 2
  • 11
  • 18
140
votes
20 answers

gpg: no valid OpenPGP data found

I am trying to install Jenkins on Ubuntu 13.10 and I am getting the above mentioned error when i try to run the following command: wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
dummy
  • 1,573
  • 2
  • 10
  • 11
140
votes
29 answers

Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms

I have box where I run tests. It seems like Jenkins would ssh in and execute commands described in the specific job that's running. Here I am trying to run my Selenium Webdriver tests, but it tells me that I have errors in launching firefox. The…
user1636922
  • 2,529
  • 6
  • 21
  • 21
140
votes
13 answers

Jenkins Git Plugin: How to build specific tag?

I am having issues getting Jenkins to build a specified tag. The tag is part of a parametrized build, but I do not know how to pass this through to the git plugin to just build that tag. This has been taking 3 hours of my day and I have conceded…
sksamuel
  • 16,154
  • 8
  • 60
  • 108
139
votes
1 answer

What is the effect of @NonCPS in a Jenkins pipeline script

I have a pipeline script in Jenkins. I used to get this exception: org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.json.JsonSlurperClassic parseText java.lang.String I looked the…
bsky
  • 19,326
  • 49
  • 155
  • 270
137
votes
4 answers

Archive the artifacts in Jenkins

Could someone please explain to me the idea of artifacts in the build process? I have the workspace directory where I check out the code to compile and run my ant scripts etc. At the end, in my case, I get a jar file that's ready to install. Is that…
Michael
  • 22,196
  • 33
  • 132
  • 187
137
votes
3 answers

Jenkins pipeline how to change to another folder

Currently i am using Jenkins pipeline script. For running one command, I need to access a folder outside its workspace directory. I tried sh "cd $workspace/", but it returned current workspace folder. How I can change to root workspace directory…
wanderors
  • 2,030
  • 5
  • 21
  • 35
136
votes
14 answers

How to install a plugin in Jenkins manually

Installing a plugin from the Update center results in: Checking internet connectivity Failed to connect to http://www.google.com/. Perhaps you need to configure HTTP proxy? Deploy Plugin Failure - Details hudson.util.IOException2: Failed to…
Kishore Tamire
  • 2,054
  • 5
  • 23
  • 25
136
votes
4 answers

How to configure Git post commit hook

How to trigger a build remotely from Jenkins? How to configure Git post commit hook? My requirement is whenever changes are made in the Git repository for a particular project it will automatically start Jenkins build for that project. In Jenkins…
phanikumar Raja
  • 1,539
  • 3
  • 14
  • 18