I have Linux jenkins master server and windows slave and trying to add windows slave to master. But it try connecting linuxhost:49187 (here we are trying connect using Java web start)
Is there any configuration change need to be done on Linux master to connect to windows slave?
Related
What I am trying to do: Create a Windows Slave from a Linux (Ubuntu) Master on Jenkins.
Jenkins is inside a container (Docker).
I followed the step-by-step here: https://scmquest.com/jenkins-windows-slave-configuration-with-screenshots/
And when I tried to launch the agent, I have an error like this: enter image description here
Okay I find out how.
I did docker container ls then under PORT there's x.x.x.x:8080->8080/tcp, x.x.x.x:50000->50000/tcp. I set the port to 500000 in Jenkins->Configure Global Security->Agent.
Now I have another error from java.
java.lang.NoClassDefFoundError:java/sql/Date
I have Jmeter Test which is launched from the Master Machine(Win 10) to be run on a slave virtual machine (Ubuntu), when I run the test locally (Win10) it take few minutes and it finished successfully with an html report, but running it on the Remote Machine (Ubuntu virtual) it finshed too (i can see it in the slave machine), but on the master (Win 10) the non gui jmeter command still running and does not stop, an no html report or jtl file is generated.
Java version on master & slave -openjdk version "11.0.6" 2020-01-14
Java version on slave -openjdk "11.0.7" 2020-01-14
Jmeter Version: 5.2.1 (both master & slave)
VirtualBox: 6.0
VirtualMachine:Ubuntu 19.10 Eoan Ermine
here on the slave machine showing me the test is over:
and here on the master ,the non gui jmeter command still running and does not stop:
Check out jmeter-server.log file on the slave, it should contain error details if something is wrong with your setup
Make sure to use bridged adapter to the slave would have its own IP address and act like a "real" machine with independent network configuration
Double check RMI configuration for the master and the slave, it might be the case the slave is not capable of connecting to the master in order to transfer the test results
According to 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article you should always be using the latest version of JMeter so consider upgrading to JMeter 5.3 (or whatever is the latest stable version available at JMeter Downloads page)
I have a build pipeline running on Windows that I cannot move to Linux, the simple reason being that it uses SQL Server tools not currently available on the RC1 version of SQL Server on Linux. Therefore my only option for running my build pipeline which needs to spin up SQL Server in containers on a Linux machine is to keep Jenkins on windows. My question is this, what is the most elegant way of creating a container on a remote Linux host from a windows server ?. I could use remote shells, however this seems like a really clunky way of doing things.
You can do this by installing a slave of the Jenkins (that is installed in Windows host) on your Linux machine and execute a job which will bring up a SQL container.
Since you are using a Pipeline job and want to execute few steps in the master and then call the SQL packages in remote hosts from your Windows host you can follow the below syntax to achieve that in a single pipeline job:
node('master') {
...................
<some task to perform>
...................
}
node('slave1 && slave2') {
...................
<some task to perform>
...................
}
I am using Jenkins Pipeline to set the build and deployment process. For the build, i am using a Windows server node but for deployment, I have to use separate deployment servers (Windows machines) for Dev, QA and Production environments which cannot be added as slave nodes. I have to connect to these deployment servers to execute the deployment code. I have already tried using PowerShell and PSExec to connect to the remote machines and both are working fine, but our requirement is not to use any of these (PowerShell or PSExec) and do everything in Groovy scripting. I have searched everywhere but have not found a suitable solution to connect to the remote windows servers using Groovy in Jenkins Pipeline and run the deployment commands. Please suggest.
I have Jenkins master installed in cloud service in linux server. I have also installed Jenkins in my local machine (Windows). The local machine version of Jenkins is working as a slave. Slave setup is configured in master location. The connection between them works fine.
I have a plugin in Jenkins master where I need to provide an application directory. This application directory is located only in my slave machine. So I would like to know that is it possible to tell to Jenkins master that the application directory is located at slave machine? If yes how it is done?
I have been searching in Google, but not found any solution yet.
The Copy to Slave plugin allows copying to and from a Slave to Master