Questions tagged [jenkins-slave]

Jenkins supports the "Controller/Agent" mode, where the workload of building projects are delegated to multiple "agent" nodes, allowing a single Jenkins installation to host a large number of projects, or to provide different environments needed for builds/tests.

Jenkins supports the "Controller/Agent" mode, where the workload of building projects are delegated to multiple "agent" nodes, allowing a single Jenkins installation to host a large number of projects, or to provide different environments needed for builds/tests.

##More Info

285 questions
1
vote
1 answer

Jenkins slave in docker unable to connect using JNLP4

I'm having an issue with one of my docker containers connecting to my jenkins master. This used to work fine for several months but something must have changed either in Jenkins or our corporate firewall rules that I haven't been able to…
Brandon
  • 225
  • 4
  • 12
1
vote
0 answers

Why I am getting error 'Server rejected the 1 private key' error on setting up ssh-slave docker image

I am running both jenkins master and slave as docker containers by using jenkins/jenkins:lts and jenkins/ssh-slave image on Ubuntu. Following are the steps: Ran ssh-keygen inside the jenkins-master container(docker exec -it container_id bash) to…
bot
  • 1,293
  • 3
  • 17
  • 34
1
vote
0 answers

How to configure jenkins slave using Amazon ECS plugin?

I have have created two clusters ECS in the same subnetwork, one for jenkins master and other for jenkins slave(empty cluster). I have installed Amazon ECS plugin on jenkins master but I am not able to configure jenkins slave node. I created both…
bot
  • 1,293
  • 3
  • 17
  • 34
1
vote
1 answer

Permissions slave node in Jenkins with SSH agent

I have this error when I try to configure a slave node in Jenkins with SSH agent. I'am trying to connect my kvm guest. How can I resolve this [01/10/19 18:37:29] [SSH] Checking java version of /var/lib/jenkins/jdk/bin/java Couldn't figure…
1
vote
1 answer

Running (system/Jenkins) groovy script on slave while accessing build variable

I'm trying to run a groovy script which is updating the build.description during the execution while running a process on a slave node. My problem is that a "system groovy script' executes only on the master node and 'Jenkins groovy scripts' run on…
jettatore
  • 371
  • 3
  • 5
1
vote
0 answers

Start selenium slave on start-up using batch file

I am trying to create a batch file that will connect slave node to master jenkins on boot. I can successfully connect by manually typing: java -jar slave.jar -jnlpUrl http://jenkinsURL:8080/jenkins/computer/Selenium%20Slave/slave-agent.jnlp -secret…
Danny Kim
  • 11
  • 4
1
vote
0 answers

Jenkins Windows slave not able to access the shared mount on Windows slave

I have Jenkins master installed on Linux, i have created a windows slave with Launch method as "Let Jenkins control this windows slave as a Windows Service". With Run Service as 'Use Local System User', successfully connected to slave with provided…
Rajashekar
  • 11
  • 4
1
vote
1 answer

Spawning multiple agents with Jenkins ECS plugin (Waiting for next available executor)

I try to configure Jenkins to spawn a slave container on ECS for each build. To achieve this Im using a Amazon EC2 Container Service Plugin. I defined a cloud and ECS Slave template with a label "ecs". When building a single job, everything works…
1
vote
0 answers

Jenkins Slave Failure

I am running jenkins in kubernetes and tried to create a custom container to run the slaves with. I configured jenkins to pull my docker container and that seems to be working as expected (pulling it and starting it in K8s). Unfortuanately I am…
mornindew
  • 1,993
  • 6
  • 32
  • 54
1
vote
1 answer

Launch agent via execution of command on the master options not found in jenkins Slave Setup

I was using Jenkins 1.7.4 version in RHEL Linux server. I can able to configure the slave using "launch agent via execution of command on the master" option during slave setup. Now we have upgraded jenkins to 2.121.1 version. Now we unable to find…
user2439278
  • 1,222
  • 7
  • 41
  • 75
1
vote
1 answer

mark a slave permanently offline in jenkins using an API

I am looking for a way to mark a slave permanently offline in jenkins through an API and i got this http://[jenkins_url]:8080/computer/[slave_name]/doDisconnect?offlineMessage=bye But the slave connects again when the next time a job runs on…
noob_coder
  • 749
  • 4
  • 15
  • 35
1
vote
1 answer

Use groovy script to create folder on Jenkins slave

I have a Windows machine as Jenkins slave. Using groovy script I need to achieve the following: 1) Create a folder on the Jenkins slave 2) Copy a file from local machine to the Jenkins slave 3) Modify the PATH variable on the Jenkins slave
mach
  • 111
  • 1
  • 2
  • 11
1
vote
0 answers

How to set / connect jenkins slave agent back on previous machine

Is there any possibility to set a slave agent back to the previous machine without deleting the agent / node? Will the node be completely deleted if i'm deleting the agent? In my case for example, if someone has installed by accident the agent via…
juLeZ90
  • 71
  • 5
1
vote
1 answer

Jenkins pipeline cmd' is not recognized as an internal or external command operable program or batch file

I am using below pipeline script in jenkins to run the build and the slave is windows machine. when i run the build with out script it works fine when i use pipelinescript to run jenkins build it throws below error 'gradle' is not recognized as an…
Cena
  • 55
  • 3
  • 8
1
vote
1 answer

Jenkins ssh slave disconnect to make the task continue perform

I have a iOS archive job on a mac slave which will take a long time sometimes 30min The question is the ssh long connection often disconnect and caused the task fail. Now I want to ask how can I do to avoid this question? What I'm looking for is…
HarrisHan
  • 164
  • 2
  • 13