简体   繁体   中英

Creating Jenkins Slave On Windows 2008 R2 Box

I have a master Jenkins server. I would like to create a slave Windows 2008 R2 slave Jenkins?

Do I need to install Jenkins on the slave box? Or is saving slave-jnlp file to disk and opening it enough?

I downloaded the slave-agent.jnlp and tried running it. I get:

在此处输入图片说明

You don't install the full Jenkins server on the slave. Just the slave agent per this documentation: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds#Distributedbuilds-Howdoesthiswork%3F

Well, which part of documentation did you follow? There are many ways of doing it

This is because Java security related to jnlp has increased, preventing it from using http.

Option A) Secure method: Switch to HTTPS. Either buy and install a certificate, or even create your own Certificate Authority and self-sign your own certificate, install it, and install the CA as a trusted root on all nodes! Should work now.

Option B) Copy the slave-agent.jnlp file from the Jenkins server to the Jenkins node by some secure means, such as SSH, or for those who don't care about security (peer pressure, that):

wget http://10.150.0.150:8080/computer/NODENAME/slave-agent.jnlp

or via an administrative Powershell (also insecure transfer):

iwr('http://10.150.0.150:8080/computer/NODENAME/slave-agent.jnlp')

Set your Jenkins node to trust any insecure http that looks like it might be from your Jenkins server:

Windows > All Programs > Java > Configure Java > Security tab > Edit Site List
add your server ("http://10.150.0.150:8080", for instance)

double-click 'slave-agent.jnlp' file on desktop. Should see a Jenkins UI saying slave agent started.

File > Install as Windows Service

Highly recommend HTTPS (Option A.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM