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.

650 questions
114
votes
4 answers

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 to configure the project to run on the slave node I…
14
votes
5 answers

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 occurred while processing the request. Please check our…
13
votes
2 answers

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 workspace and jobs in the $JENKINS_HOME?
eekfonky
  • 309
12
votes
1 answer

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 expression How to get rid of this message and…
lakshman
  • 305
8
votes
2 answers

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 know the URL for it?
AXE Labs
  • 1,559
  • 5
  • 20
  • 24
7
votes
1 answer

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 syntax and how to perform this in Jenkins Declarative…
iamarunk
  • 103
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…
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…
5
votes
0 answers

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 expected, searching on this topic tells me how to use…
5
votes
5 answers

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-get install jenkins sudo ufw enable sudo ufw…
4
votes
1 answer

Can Jenkins run a shell script located outside of the Jenkins workspace?

Can Jenkins run a shell script located outside of the Jenkins workspace? I am wondering if I can get Jenkins to run scripts outside of the Jenkins workspace that are not sourced within any kind of source control repository. Does Jenkins have a…
djangofan
  • 4,200
4
votes
1 answer

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?
Nair
4
votes
1 answer

Where is Jenkins CLI .jar file stored on the server?

I am using the Jenkins CLI in a script for some Jenkins automation (https://www.jenkins.io/doc/book/managing/cli/). According to the docs, you have to first download the .jar from the Jenkins host. Currently I am doing this by running wget…
Rino Bino
  • 603
3
votes
2 answers

Convert Jenkins Script to Declarative Pipeline

I have a scripted pipeline which I need to checkout from a repo rather than have locally. However, when I add it to git the job fails instantly. Here is the working script; node { INSTANCE_ID = "" stage('Get Instance Id') { …
eekfonky
  • 309
1
2 3 4 5 6 7