Tags:
create new tag
,
view all tags
---+!! How to add new JENKINS slave nodes (clients) %TOC% ---++ Set up the jenkins user on the client node * Create the user =jenkins= on the node ---++ Passwordless ssh from jenkins server configuration * If not already done, on the jenkins server enter =ssh-keygen -t rsa= without specifying a password as user jenkins ---++ Passwordless ssh from jenkins client configuration * =mkdir /home/jenkins/.ssh= * =chmod 700 /home/jenkins/.ssh/= * =vim .ssh/authorized_keys= (<< copy here the content of =cat .ssh/id_rsa.pub= run on jenkins server home) * =chmod 640 .ssh/authorized_keys= * =service sshd restart (as root)= ---++ Create the node in Jenkins * Point your browser to the jenkins instance: =http://ci-01.cnaf.infn.it:8080/= * Log in as admin and go to =Configura Jenkins -> Gestisci nodi= * Go to =New Node= * Insert node name and select the =Copy existing node= radio button. Specify the node to be copied eg. =ci-02= * Modify the following fields according to your desiderata: =Name=, =Description=, =Labels (important for triggering builds on this node)=, =Host= * Click on the Save button * The user which performs ssh (jenkins) is already specified. If the node is created from scratch this is another option to be specified. In order to trigger a build on the already created node, specify the corresponding label in the build options. ---++ Enable package deployment to nexus In order to publish artifacts in nexus, it is necessary to define a file on each build node under the jenkins user home directory. The file is ~jenkins/.m2/settings.xml and the content should be the following: <verbatim> <settings> <servers> <server> <id>sonatype-nexus-staging</id> <username>jenkins</username> <password>***</password> </server> </servers> </settings> </verbatim> The id is the one that must be specified in the pom.xml section for the deployment. ---++ Install build packages These packages are considered the minimum build environment. Install them on the slave node. <verbatim> cmake bash bzip2 coreutils cpio diffutils fedora-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux which xz </verbatim> and <verbatim> boost boost-devel createrepo maven (for java pacakges) </verbatim>
E
dit
|
A
ttach
|
PDF
|
H
istory
: r6
<
r5
<
r4
<
r3
<
r2
|
B
acklinks
|
V
iew topic
|
M
ore topic actions
Topic revision: r6 - 2013-11-21
-
CristinaAiftimiei
Home
Site map
CEMon web
CREAM web
Cloud web
Cyclops web
DGAS web
EgeeJra1It web
Gows web
GridOversight web
IGIPortal web
IGIRelease web
MPI web
Main web
MarcheCloud web
MarcheCloudPilotaCNAF web
Middleware web
Operations web
Sandbox web
Security web
SiteAdminCorner web
TWiki web
Training web
UserSupport web
VOMS web
WMS web
WMSMonitor web
WeNMR web
IGI Documentation
Repositories specifications
Installation and Configuration Guides
Updates Guides
Services/Node Types List
IGI Updates Calendar
Tips & Tricks
Use Cases & Troubleshooting
Site Admin Corner
IGI Release Management
Integration Process
TODO List
IGI Testing & Certification
Certification Testbed
Blah testing
CREAM testing
HLR testing
Storm testing
UI testing
VOMS testing
WMS testing
WN testing
IGIRelease Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback