Jenkins master migration from Windows to Linux

28 views
Skip to first unread message

D'raj

unread,
Apr 23, 2020, 3:52:07 AM4/23/20
to Jenkins Users
Hello All,
I recently migration Jenkins master from Windows to Linux(Centos). The migration is successful.
I installed Jenkins on Linux and copied all the directories from Windows to Linux.
LDAP is set. i can login and see the jobs.

The problem is I cannot execute and test jobs as the build hosts are offline. How do I configure old build hosts to talk to new linux Jenkins instance?
Is there a way to check if migration is successful, without running and testing each and every job in the system.


Thank You!!

Dirk Heinrichs

unread,
Apr 23, 2020, 4:58:42 AM4/23/20
to jenkins...@googlegroups.com
Am Mittwoch, den 22.04.2020, 23:52 -0700 schrieb D'raj:

How do I configure old build hosts to talk to new linux Jenkins instance?

That largely depends on how they have been connected. Are they connected via SSH Slave plugin, Swarm Slave plugin or via JNLP? If SSH or JNLP, the connection is initiated from the master, while in case of Swarm Slaves the connection is initiated from the nodes.

HTH...

Dirk
-- 
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

Slide

unread,
Apr 23, 2020, 8:11:02 AM4/23/20
to Jenkins User Mailing List
For JNLP, the connection is done from the agent. It launches the agent.jar which connects to the master. If the agents are using "JNLP" then the launch command for that agent would possibly need to be updated if your master is at a different hostname/ip address than the old master. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/78337ac71519034ab321a80fafde918d735c7f5f.camel%40opentext.com.


--

Dirk Heinrichs

unread,
Apr 23, 2020, 8:16:57 AM4/23/20
to jenkins...@googlegroups.com
Am Donnerstag, den 23.04.2020, 05:10 -0700 schrieb Slide:

For JNLP, the connection is done from the agent. It launches the agent.jar which connects to the master.

But one needs to actively issue an "Add node" from the master to create it. That's also true for SSH slaves, but not for Swarm slaves.

Bye...

D'raj

unread,
Apr 23, 2020, 10:18:09 AM4/23/20
to Jenkins Users
What I am unaware of is, how my windows host behaves when I disconnect it from one jenkins server to another?
Specifically with Linux host, do I need to take any extra care?
Where do I keep jenkins slave .jar file in linux?
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.

D'raj

unread,
Apr 23, 2020, 10:18:29 AM4/23/20
to Jenkins Users
Connected via JNLP agent

D'raj

unread,
Apr 24, 2020, 1:07:34 PM4/24/20
to Jenkins Users
I am not getting option Launch agent via Java Web Start for Jenkins master(Linux), When I try to install plugin it says plugin is already installed.
tried windows-slaves version 1.6 and 1.5

Tried using Launch agent via SSH  but it keep spinning forever does not return to Jenkins, after refresh I see the node is still offline.

Am I missing something?
What should be permissions of /var/lib/jenkins directory?


Windows-slaves plugin

Pierre BEITZ

unread,
Apr 24, 2020, 4:09:08 PM4/24/20
to jenkins...@googlegroups.com
Did you check in the security settings if the JNLP port is enabled? Usually when you don't see the JNLP launch method this is the reason. 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages