Questions tagged [jenkins]

Jenkins is an extendable open source continuous integration server

It is built in Java and has many plugins to support,build and test projects.

More info on the official website.

654 questions
6
votes
1 answer

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 an attempt to remove the configuration and…
6
votes
3 answers

Jenkins pipeline script - become self aware - need directory of Jenkinsfile

I am one short step away from being able to replace numerous customized Jenkinsfiles with one. All I need to get is the directory containing the Jenkinsfile under execution. I am using the Declarative pipeline syntax. I looked at several ideas in…
Kevin Buchs
  • 353
  • 1
  • 3
  • 20
6
votes
1 answer

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 directory service has an issue. Is this possible in…
emmdee
  • 2,187
  • 12
  • 36
  • 60
6
votes
2 answers

How to choose a label for Jenkins slave dynamically

I have a few Jenkins slaves, some of them are labeled by "X", and others with "Y" label. I'd like to choose group of slaves, based on their label, when I starting this job from its upstream job. I.e. I want to pass a value for a label (for…
6
votes
1 answer

upstream prematurely closed connection while reading response header from upstream

I am having issues setting up SSL for my Jenkins CI server. I use Jenkins behind nginx for a reverse proxy. I am getting these upstream prematurely closed connection while reading response header from upstream errors in my jenkins.error.log file.…
Bryan Sills
  • 181
  • 1
  • 1
  • 4
6
votes
1 answer

runit does not kill process on sv stop or sv reload

i am running a headless selenium process along a jenkins server on an AMI linux box, all managed by runit. the problem is that issuing "sv stop selenium" or "sv reload selenium" do not term or kill the old instance along its child processes, but…
Andreas Wagner
  • 133
  • 2
  • 8
6
votes
1 answer

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" on the Gerrit Trigger, it returns success, so I know…
Ry Jones
  • 404
  • 8
  • 18
6
votes
2 answers

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/sudoers file which will allow user jenkins to run…
s g
  • 611
  • 3
  • 9
  • 17
6
votes
2 answers

Permission denied when using Jenkins to run commands

I'm using a Jenkins job to execute some shell commands where directories and files need to be created but I get a Permission Denied error. I'm running Jenkins as a daemon (followed this tutorial from the Jenkins website). The jenkins that runs the…
a.boose
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

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 this in the GUI. ForwardAgent is set to yes in…
r_2
  • 335
  • 3
  • 9
6
votes
3 answers

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://www.example.com. I've got it up and running,…
Lorin Hochstein
  • 5,028
  • 15
  • 56
  • 72
6
votes
3 answers

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 http://127.0.0.1:8080/hudson It was pretty…
odie
  • 63
  • 1
  • 4
5
votes
3 answers

In Jenkins how to pass a parameter from Pipeline job to a freestyle job

I am running a pipeline job and with this we need to pass a parameter to a downsteam job but its not working. We tried as follows: Pipeline JOB: node { parameters { choice( name: 'OS', …
Geo
  • 575
  • 3
  • 9
  • 23
5
votes
1 answer

Jenkins Pipeline File - Passing Jenkinsfile variables into further commands

Issue: In passing a variable declared within Jenkinsfile to a sh command that ssh's and executes on a remote host, the variable contents are not retained on the remote host. Built-in Jenkins variables retain fine both locally and on the remote host.…
emmdee
  • 2,187
  • 12
  • 36
  • 60
5
votes
1 answer

Confusion with Jenkins Docker Plugin and Jenkins Docker Slaves

So I am pleasantly surprised in some respects to see the Jenkins Docker plugin "pushing" Docker images to my Docker host metal but it is confusing too because my builds are taking place in Docker Slave Containers that are running on the Docker host…
Brian
  • 321
  • 3
  • 5
  • 15