Jenkins is an extendable open source continuous integration server

learn more… | top users | synonyms

28
votes
2answers
34k views

Tell Jenkins to run a specific project on a particular slave node

How do I tell Jenkins to run a specific project on a particular slave? I've set up a Jenkins master node, and a slave node that I want to use for staging an application. But I can't figure out how ...
25
votes
4answers
43k views

How to use Jenkins with SSL / https

I have a Fedora server running Jenkins which I install via yum. Everything is okay, I can access it with http://ci.mydomain.com. But now, I want to access it with https://ci.mydomain.com so the login ...
15
votes
7answers
50k views

How to check the build status of a Jenkins build from the command line?

How to check the Jenkins build status without switching to the browser? If required I need to create a script using the JSON API, but I was wondering if there is already something like this built in.
15
votes
2answers
7k views

How can I get Jenkins to stop listening for remote connections?

I have Jenkins sitting behind Nginx, with Nginx taking care of authentication, but Jenkins is still listening on port 8080 externally, so by accessing the box on port 8080 people can bypass Nginx. ...
13
votes
4answers
22k views

Where and How does Hudson/Jenkins store data?

I installed Jenkins on Ubuntu 10.10 and I could not find any mention of setting up database for data persistance. So the first question is where does the data get stored, and secondly, can we setup ...
9
votes
4answers
18k views

Jenkins: Accessed denied after turning on global security. How to revert?

Need help figuring this one out. How can I fix this issue? I think I enabled global security and saw this error immediately. (while accessing localhost:8080 I get the following...) A problem ...
9
votes
3answers
9k views

How to make Jenkins CI use Local time instead of UTC on debian squeeze

I have a Jenkins-ci installation on a debian squeeze. Current default time zone: 'America/Toronto' Local time is now: Mon Jul 9 16:00:57 EDT 2012. Universal Time is now: Mon Jul 9 20:00:57 ...
9
votes
2answers
10k views

Triggering Jenkins build for merge request from GitLab web hook

I want Jenkins (1.561) to build merge (pull) requests submitted to GitLab (6.7.5), triggered by a merge request web hook. I have a parameterised build, and the Jenkins plugins "GitLab Merge Request ...
8
votes
1answer
10k views

Allow anonymous user to only view job list without browsing workspace in Jenkins

We are running a Jenkins CI. Generally we would like to provide full access to authenticated users from particular group full-read access to anonymous users block anonymous users to access certain ...
8
votes
2answers
9k views

How can I modify a jenkins job configuration programatically without a restart?

Jenkins jobs have config.xml files that store the configuration of that job. I have a "job manager" job that modifies the configuration of other jobs, but I can't seem to get it to acknowledge the ...
7
votes
1answer
8k views

Starting a forever process in a Jenkins build step?

I'm running a shell command at the end of a Jenkins deployment to restart a forever script: npm install && forever stop app.js && forever start -a -l /var/log/forever.log app.js ...
7
votes
2answers
9k views

Correct Apache reverse proxy config with SSL for Jenkins and Sonar

I am running two services behind an Apache server: Jenkins (Port 8080) and SonarQube (Port 9000). My apache config looks like this: <VirtualHost *:80> ServerName server Redirect permanent /...
7
votes
1answer
6k views

Jenkins won't serve with CA signed certificate

tl;dr Fixed I've been running a Jenkins instance for a while with a self signed certificate, which works fine except the hassle of having to create certificate validation exceptions in browsers. So ...
7
votes
1answer
5k views

Unknown option git config --local reported by Jenkins

I asked the same question on stack overflow but I only got 5 views, I think this is a better forum for this question. I'm setting up CI for a C# project hosted on github in a private repo. Git is ...
6
votes
2answers
17k views

Which Java version should I run Jenkins with?

Reference: Jenkins Users :: Jenkins on Windows: Java + JRE (version) confusion Which Java version should I run Jenkins with (on Windows)? Should I use the included JRE of the Windows master? Should ...
6
votes
3answers
10k views

Jenkins CI - Cannot allocate memory

I tested jenkins-ci successfully on a ubuntu 10.4 (with vmware fusion) on my local computer. Now I want to install and use it on my virtual server at hosteurope. The basic installation was no problem, ...
6
votes
3answers
5k views

Mapping hudson to a subdomain through nginx proxying

I'm now trying to setup nginx as a reverse proxy for Hudson so it can be access on http://build.example.com directly. I've already installed Hudson on Tomcat and verified that I can access Hudson on ...
6
votes
1answer
21k views

jenkins fails to connect to git repository

I can't configure the git repository url in a way, that Jenkins could access it. under "Project > Configure > Source Code Management" I set the Repository URL to "git@store:repositories/testproject....
6
votes
1answer
3k views

I would like Jenkins to fire a build when a patchset is uploaded or changed in Gerrit. How, exactly, do I configure this?

I am using Jenkins 1.557 to watch a Gerrit 2.8 instance for changes. I am using the following plugins: Git Plugin 2.1.0 Git Client Plugin 1.7.0 Gerrit Trigger 2.11.1 When I use "test connection" ...
6
votes
0answers
2k views

Jenkins Linux Slave error: SEVERE: I/O error in channel channel

I am getting this error on all Linux servers try to start a Slave. The version isJenkins ver. 1.532.1. I didn't have this problem when I have another installation with Jenkins ver. 1.509.4. I've read ...
6
votes
1answer
2k views

ForwardAgent in Jenkins

I'm trying to enable ForwardAgent in the "Publish over SSH" Jenkins Plugin. This would allow jenkins to execute deployments, rsyncs and svn+ssh checkouts on remote servers. But there's no option for ...
6
votes
1answer
11k views

How to manage groups and users in Jenkins

I'm trying to use role based security plugin in Jenkins, but i'm not sue i am using it right. I've decided to go with jenkin's own user database as a security realm instead of LDAP. i'm adding the ...
5
votes
1answer
10k views

Run shell scripts as root though Jenkins

I have a EC2 instance running. How can I run commands with sudo through Jenkins? When I try sudo touch /home/ec2-user/foo.bar, I get the following error: sudo: no tty present and no askpass program ...
5
votes
5answers
9k views

Set JENKINS_HOME in Tomcat7?

I'm trying to set up Jenkins in Tomcat7 on Ubuntu. I installed Tomcat7 and deployed jenkins.war, and I now see the Jenkins home page at http://myhost:8080/jenkins, but it's attempting to create the ...
5
votes
1answer
2k views

How do I get a public ssh key on a docker jenkins image for git authentication?

I'm using Docker and I'm running a Jenkins image. The image I'm trying: https://github.com/orchardup/docker-jenkins I need to generate an ssh key pair so I may use it to authenticate to bitbucket. ...
4
votes
2answers
11k views

Creating SSH key on Jenkins Master - Centos Yum Install

I have installed Jenkins on a Centos VM as I am looking at replacing Bamboo, I have it all up and running by following the install instructions. That went fine, I then wanted to spin up a Slave, I ...
4
votes
3answers
7k views

Jenkins reports reverse proxy setup incorrect with Apache using virtual hosts with SNI

I'm setting up a Jenkins server, to run under Tomcat behind Apache. I'm using virtual hosts with SSL using SNI so I can access it at https://jenkins.example.com, and serve something else on, say, http:...
4
votes
1answer
3k views

Jenkins pulling from Bonobo Git Server

I have installed Jenkins Git plugin for SCM on Jenkins Bonobo Git Server To configure Jenkins to build from Git I type in url, which is on my local network http://devserv/Bonobo.Git.Server/<...
4
votes
2answers
2k views

How to show jenkins user's groups?

I'm trying to configure Jenkins with various permissions for different groups. I recall pulling up a page that displayed the logged in user's group memberships but I can't find it again. Does anyone ...
4
votes
2answers
12k views

Best practices to avoid Jenkins error: sudo: no tty present and no askpass program specified

When running any sudo command from Jenkins I get the following error: sudo: no tty present and no askpass program specified I understand that I can solve this by adding a NOPASSWD entry to my /...
4
votes
5answers
7k views

How to access Jenkins remotely on Ubuntu 12.04 server?

I have installed Jenkins and opened port 8080 on Ubuntu 12.04 server but still can't access Jenkins remotely. Below is the procedures I took. # Install Jenkins, enable UFW and open port 8080 sudo apt-...
4
votes
2answers
4k views

Why might the Jenkins user not have permission to access the Docker unix socket?

I've added the jenkins user to the docker group thinking that it would allow Jenkins jobs to run Docker commands. If I switch to the jenkins user, I can verify it works (manually): ubuntu@hostname:~$ ...
4
votes
2answers
2k views

Optimal way to build and deploy a website as a .deb package

I've been battling with deploying (mainly PHP) websites as .deb files for some time and wonder if there's a better way than my rather convoluted method. My goal is continuous integration on my staging ...
4
votes
1answer
366 views

Jenkins Slave goes offline during the build

A Jenkins 1.651 master and slave have been installed on a Windows Server 2012. The slave is dedicated to run Selenium tests, but most of the time it goes offline: Build step 'Execute Windows batch ...
4
votes
1answer
11k views

Unable to access Jenkins server

I'm trying to install Jenkins on my web server, which is an Ubuntu 13.10 server running on an Amazon EC2 instance. I've restarted Jenkins using sudo /etc/init.d/jenkins restart When I check my ...
4
votes
1answer
5k views

Running Jenkins standalone vs within Tomcat

What things should be considered when deciding between running Jenkins standalone or within Tomcat? We would prefer to not have to use Tomcat because there's no other applications on this server ...
4
votes
1answer
4k views

How to setup user groups based on Active Directory in Jenkins?

Is it possible to create user groups using Active Directory id's and then assign roles in Jenkins? Instead of using Jenkins default user name management?
4
votes
1answer
2k views

What are the Jenkins/Hudson key files for?

After I have installed Jenkins (on Windows), the program folder contains, among others, two files: identity.key (28 lines) -----BEGIN RSA PRIVATE KEY----- MIIEow...... ... -----END RSA PRIVATE KEY--...
4
votes
1answer
548 views

Jenkins CI Master-Slave setup with docker for slave server

So I have setup up two Ubuntu AWS Instances (a small t2.medium and a big r3.large). The t2.medium has Jenkins CI installed on it and the r3.large has docker engine installed on it. The intention here ...
4
votes
1answer
6k views

Apache mod_proxy: Multiple virtual hosts disable each other

I have an Ubuntu 12.04 server, which had Redmine already installed on a stand-alone apache (everything under /opt/redmine). I wanted to install an instance of Jenkins on the same system, without ...
4
votes
3answers
18k views

How can I get Jenkins to execute a script that it pulled from Git?

I am using Jenkins to trigger and manage a series of import jobs. I want to put my import script in Github, and when Jenkins builds the job, it should (a) pull that version controlled script out of ...
4
votes
1answer
826 views

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections ...
4
votes
2answers
2k views

Jenkins Install, Service Start failure

Trying to install Jenkins as the sole administrator user on Windows 7, with UAC turned off, the following error appears: Nothing I have tried has been able to fix this, the system installed fine ...
4
votes
0answers
106 views

Blue-green deployment for Jenkins itself

When I tinker with my live Jenkins instance, I risk down time. Thus I want to run blue and green Jenkins master instances. This way, I can work on one while the other is live and stable. As ...
4
votes
0answers
323 views

Extract data that Jenkins receives from POST hooks sent by eg. github or bitbucket

I have a Jenkins job Trigger builds remotely (e.g., from scripts), and bitbucket PULL request HOOK triggers that job we can say everything works fine. Jenkins is smart to check any change and build ...
4
votes
0answers
1k views

Jenkins slave fails handshaking on windows

I have a win2k8 machine used as our CI master server (Jenkins) I have various other servers running as slaves The master is listening for slave connections on port 2000 SlaveA - can connect to ...
3
votes
4answers
722 views

Varnish on 80, nginx on 8080, on which port to put jenkins?

On my staging server, I have Varnish + Nginx. They are on port 80 and 8080. Given that I have to install jenkins, on which port I have to bind it ? (which is usually 8080 but it's already taken)
3
votes
2answers
643 views

Bash commands run at terminal but not in Jenkins/Bash Script

I'm using Jenkins to build and deploy HTML documentation to a local Apache web server for our devs to use. When I run the commands in the terminal, everything installs properly (Proving the server is ...
3
votes
2answers
8k views

Failed to connect to repository - 401 on Jenkins + Codebase Git

I'm trying to get Jenkins to use Git as our SCM, and setting it up is being a bit of a pain. When specifying the Codebase Git repo to use, using the following format: https://our.domain.com/...
3
votes
3answers
2k views

Apache as reverse-proxy for tomcat (running jenkins)

I have set up apache to work as a reverse proxy to tomcat that is running jenkins-CI. I can access the site from outside fine, except when I log in to jenkins, it redirects to my lan-hostname, and it ...