File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ Jenkins Master Slave configuration Setup
2
+
3
+ on Jenkins UI ( master )
4
+
5
+ Manage Jenkins --> Configure Global Security --> Agents
6
+
7
+ TCP port for inbound agents
8
+ by deafault it will be "disabled"
9
+ ensure it is selected as "Random"
10
+ apply & save
11
+
12
+ Manage Jenkins --> Manage Nodes --> New Node
13
+
14
+ Node name: myslave
15
+ select "Permanent Agent" & click on "OK" button
16
+
17
+ # of executors: 5
18
+ Remote root directory: /home/jenkinslave
19
+ Labels: slave1
20
+ Launch method: launch agent by connecting it to the master
21
+ save
22
+ click on new node
23
+ copy:
24
+ Run from agent command line:
25
+ java -jar agent.jar -jnlpUrl http://18.221.224.86:8080/computer/myslave/slave-agent.jnlp -secret 970f69a4f138c2df4b4d39de9e7b3d59228a05260743b70659e58b37b204b656 -workDir "/home/jenkinslave" &
26
+ download the agent.jar by clicking on it.
27
+
28
+ ======================================================================================
29
+
30
+ on slave machine
31
+
32
+ login to the machine & switch to root user
33
+ mkdir -p /home/jenkinslave
34
+ chmod 777 /home/jenkinslave
35
+ cd /home/jenkinslave ( copy agent.jar downloaded from master here )
36
+ chmod 777 agent.jar
37
+ Run from agent command line: (copied from master ui)
38
+ java -jar agent.jar -jnlpUrl http://18.221.224.86:8080/computer/myslave/slave-agent.jnlp -secret 970f69a4f138c2df4b4d39de9e7b3d59228a05260743b70659e58b37b204b656 -workDir "/home/jenkinslave" &
39
+
40
+ Note: above command is just an example only, copy the url from your jenkins UI after configuring node
41
+
You can’t perform that action at this time.
0 commit comments