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
30
votes
3 answers

Creating a Jenkins Slave via Java Web Start

I have already had a working Master - Slave Configuration on my Jenkins, but an update broke it so I had to reinstall it (didn't have a backup yet). But now after reinstalling Jenkins I don't get it to work anymore. When I go on Manage Jenkins ->…
Dominik Lemberger
  • 2,287
  • 2
  • 21
  • 33
24
votes
4 answers

Installing Jenkins Slave as Service on win8.1 and win10

I am trying to install Jenkins slave service after starting the slave via web start. I get the following error when it tries to install on windows 10 and windows 8.1. [JenkinsWorkDirectory]$ c:\JenkinsWorkDirectory\jenkins-slave.exe…
zalimgandhera
  • 747
  • 1
  • 9
  • 23
17
votes
12 answers

Jenkins Windows slave connection getting terminated with java.nio.channels.ClosedChannelException

While connecting to windows machine as slave, i am getting following error i think its some network related issue, but need some help where to start looking or what is a possible solution for this. INFO: Terminated Aug 01, 2017 10:15:54 PM…
Yogesh Kumar
  • 682
  • 1
  • 10
  • 29
17
votes
7 answers

Jenkins slave cannot connect with master: Incorrect acknowledgement sequence

After update of our Jenkins master installation to its latest LTS version 2.46.3 one of its slaves (Windows 7 machine, 32-bit) cannot connect with the master. The error we're getting is: java -jar slave.jar -jnlpUrl…
andreasgk
  • 673
  • 1
  • 12
  • 30
17
votes
5 answers

Why Jenkins says "Server rejected the 1 private key(s)" while launching the agent?

I am successfully able to connect to remote machine using SSH but when I am launching the agent from Jenkins it throws the following error: ERROR: Server rejected the 1 private key(s) for user1…
ANIL
  • 2,542
  • 4
  • 25
  • 44
15
votes
4 answers

Jenkins error: "ERROR: Unable to install JDK unless a valid username/password is provided."

I have added a new slave to my jenkins server, the connection itself seemed to go successfully via ssh, however when I try to build on that server the Job tries to download Java on the slave(even though java is all-ready installed on that server)…
Omri Shneor
  • 965
  • 3
  • 18
  • 34
14
votes
4 answers

CI with Jenkins: how to force building happen on slaves instead of master?

I am using Jenkins for CI, I have a master and two slaves, master is running Jenkins and I want only slaves doing the actual building task, is there anywhere I can configure this? I know there is an 'executor', if I change it to 0 on master,…
hzxu
  • 5,753
  • 11
  • 60
  • 95
13
votes
4 answers

Install Jenkins slave as a Windows service in command line

I have been looking a lot on Google on how to install the service in command line (so without manual interaction) but I am stuck on how to get the jenkins-slave.exe I found those instruction…
Maxime
  • 1,095
  • 1
  • 11
  • 20
11
votes
3 answers

Jenkins: Logfile location on slave nodes?

I have a jenkins master-slave setup through JNLP connections. Everything is working fine except I can not find any logs on the slave nodes. There are logs on the master in $JENKINS-HOME/logs/slaves but none on the slave node. Can you tell me on…
Q-man
  • 115
  • 1
  • 1
  • 6
11
votes
3 answers

Jenkins: two slaves vs. one slave two executors

Is there any difference between I create two slaves, or one slave with two executors on the same Windows server?
Jirong Hu
  • 2,315
  • 8
  • 40
  • 63
10
votes
5 answers

Jenkins: no tool named MSBuild found

Setting up a Pipeline build in Jenkins (Jenkins 2.6), copying the sample script for a git-based build gives: "no tool named MSBuild found". I have set MSBuild Tool in Manage Jenkins -> Global Tool Configuration. I am running pipeline on the slave…
Atul N
  • 811
  • 1
  • 8
  • 20
9
votes
2 answers

Jenkins error - Remote call on xxxxxxxx failed

FATAL: Remote call on Harris MacBook Pro failed java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection at hudson.util.ProcessTree$UnixProcess.kill(ProcessTree.java:647) at…
HarrisHan
  • 164
  • 2
  • 13
8
votes
3 answers

Jenkins Windows slave thinks my cert is invalid

Following the docs to use Java Web Start and I'm up to the point where I'm running this command on the slave to connect to the master: java -jar agent.jar -jnlpUrl https://my-server.com:8888/computer/myslave/slave-agent.jnlp -secret sdfsdfsdfsdf…
red888
  • 27,709
  • 55
  • 204
  • 392
8
votes
4 answers

Setting display resolution for Selenium tests on virtual machine as Jenkins Slave

I'm having trouble running some Selenium tests on a Jenkins Slave. To be specific, the display resolution that is used to run the tests is too small, causing some of the tests to fail. To check the display resolution, we log the display height and…
jurgenvo
  • 183
  • 1
  • 1
  • 8
7
votes
1 answer

Find out in which Slave the Jenkins Pipeline is running

I am starting my Pipeline this way: node('my_Label') { // my code } I want to know in which Slave my code is running. I tried multiple things but I was not able to find out the correct method to call for that :( Thank you in advance
Leon
  • 255
  • 1
  • 4
  • 11
1
2 3
18 19