Questions tagged [jenkins]
Jenkins is an extendable open source continuous integration server
649
questions
115
votes
4
answers
275k
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 ...
54
votes
10
answers
237k
views
How do I check the build status of a Jenkins build from the command line?
How do I check the Jenkins build status without switching to the browser?
If required, I can create a script using the JSON API, but I was wondering if there is already something like this built in.
41
votes
4
answers
118k
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 ...
33
votes
2
answers
63k
views
The option to "Launch slave agents via Java Web Start" is missing from new node configuration, how can I add it to the options menu?
I'm following this official Jenkins guide in order to become familiar with the Jenkins Pipeline configuration.
One of the steps there is to create a dumb slave and set it to "Launch slave agents via ...
29
votes
1
answer
42k
views
Allowing a non-root user to restart a service
Background :
I created an app called myapp with Spring-boot. It consists of a self-executable jar and is compatible with systemd services. Now, I am trying to integrate it with jenkins.
What I want:
...
26
votes
2
answers
21k
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.
...
25
votes
4
answers
49k
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 ...
23
votes
2
answers
79k
views
Nginx - Forward HTTP AUTH - User
I have some trouble with Nginx and Jenkins (Hudson). I am trying to use Nginx as Reverse Proxy for the Jenkins instance with HTTP Basic Authentication.
It works so far, but i have no idea how to pass ...
19
votes
4
answers
37k
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
When ...
19
votes
5
answers
79k
views
Using GIT variables in a declarative Jenkins pipeline
I'm struggling to access GIT variables in my Jenkins pipeline
I need to know what GIT branch it's been checked out inside some bash code in a stage of the pipeline. I will use this to create ...
18
votes
7
answers
50k
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 ...
17
votes
3
answers
85k
views
how to trigger jenkins job via curl command remotely
I have tried to execute(trigger) jenkins job (not a parameterized job) via curl command by using below methods but it showing these results. my jenkins version is Jenkins 2.73.3
curl -X POST -u ...
16
votes
3
answers
96k
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 ...
15
votes
2
answers
42k
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 ...
14
votes
5
answers
57k
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 ...
14
votes
1
answer
17k
views
Kill process that keeps restarting itself
I need some advice on how to completely kill the Jenkins process. It keeps restarting itself. On Mac OSX.
$ps -eaf
216 1143 1 0 0:01.65 ?? 0:04.03 /usr/bin/java -jar /Applications/...
13
votes
2
answers
50k
views
Safely delete the contents of 'workspace' and 'jobs' in Jenkins
I have inherited a Jenkins server and need to clear some space. I have set a;
post {
always {
deleteDir()
}
}
on all the jobs. Can I remove old builds safely by deleting the contents of ...
12
votes
2
answers
67k
views
How give aws credential to jenkins pipeline?
I have following configuration in my jenkins pipeline
s3Upload( file:'ok.txt', bucket:'my-buckeck', path:'file.txt')
Problem is s3Upload function is not taking AWS access keys that i have stored in ...
12
votes
3
answers
35k
views
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 /...
12
votes
2
answers
24k
views
Jenkins on Docker - Free Swap Space 0
I've noticed that my master node on Jenkins shows
free swap space: 0 B
So I added a swap file as described here.
But this has no effect. What am I doing wrong?
12
votes
1
answer
33k
views
Jenkins is reserved for jobs with matching label expression
I have installed blue-ocean plugin and create a simple pipeline with print message. When I run the pipeline, build job hang with below message
Queued Jenkins is reserved for jobs with matching label ...
11
votes
1
answer
13k
views
Jenkins: Trying to add a dumb slave but the option is missing, any idea how to add it?
I've installed Jenkins 2.x on a server and now I'm trying to add a "Dumb slave" but the option is missing.
In this official Jenkins tutorial it says that when creating a new node the option should ...
11
votes
4
answers
44k
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 ...
11
votes
2
answers
17k
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 ...
11
votes
1
answer
61k
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....
10
votes
4
answers
7k
views
Integrate Amazon Elastic Container Registry with Jenkins
I'm trying to integrate Amazon's new Elastic Container Registry (ECR) with my Jenkins build service. I'm using the Cloudbees Docker Build & Publish plugin to build container images and publish ...
10
votes
1
answer
55k
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 ...
10
votes
3
answers
22k
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 ...
9
votes
2
answers
16k
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:~$ ...
9
votes
3
answers
19k
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, ...
9
votes
1
answer
18k
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 ...
9
votes
5
answers
17k
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 ...
9
votes
7
answers
21k
views
Is there a way to change the java JRE a linux Jenkins server uses?
A Jenkins server is running under Java 1.7 on a linux machine and I need to change it to 1.8 so that I can run a specific plugin.
The Linux machine has a Java 1.8 JDK/JRE installed, but I cant find a ...
8
votes
2
answers
25k
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 ...
8
votes
2
answers
23k
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 ...
8
votes
2
answers
18k
views
Jenkins: Using Parameterized Trigger Plugin via Pipeline Script
I need to trigger a Jenkins job from another job and pass various values to it for later conditional logic. It seems the Parameterized Trigger Plugin will do exactly what I need. (https://plugins....
8
votes
1
answer
8k
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 ...
8
votes
1
answer
23k
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 ...
7
votes
1
answer
64k
views
How to use for loop in Jenkins declarative pipeline
I am having a list of variable like below
allModules = ['module1', 'module2', 'module3', 'module4', 'module11']
I want to use loop then print all the module one by one.
Please let me know the ...
7
votes
3
answers
16k
views
executing RSYNC command in jenkins
I'm trying to deploy my code to a remote server. So far I've tried
Publish over SSH Plugin: the problem is that I'm unable to keep file permissions
Rsync command: this keeps the file permissions, ...
7
votes
1
answer
7k
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 ...
7
votes
1
answer
17k
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 ...
7
votes
1
answer
15k
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 ...
7
votes
1
answer
10k
views
Jenkins User Credentials Not Showing In Project
So I have Jenkins-CI running with the plugins:
Credentials
Credentials Binding
Git
First what I did in order to authenticate Git with the remote repository, is I added credentials to the server to ...
7
votes
2
answers
17k
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. ...
6
votes
2
answers
39k
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 /etc/...
6
votes
3
answers
13k
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:...
6
votes
1
answer
5k
views
Jenkins + LDAP Plugin --- Any way to have a login backdoor?
Any time I authenticate a system with LDAP/AD I like to have at least one "local" admin that can get in even if Directory Services go down/have an issue. Essentially a "backdoor" just in case the ...
6
votes
1
answer
8k
views
Jenkins failing to run after attempting to implement AD login
I have a jenkins instance that I tried to set up with Active Directory. None of the users could log in with any credentials after, so I went onto the server and removed the Active Directory plugin in ...
6
votes
3
answers
6k
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 ...