zoukankan      html  css  js  c++  java
  • Step by step guide to set up master and slave machines(转)

    Note: There is no need to install Jenkins on the slave machine.
      1. On your master machine go to Manage Jenkins > Manage Nodes.
      2. New Node --> Enter Node Name.
      3. Select Dumb Slave --> Press OK.
      4. Fill out the following:
        1. Set a number of executors (one or more) as needed.
        2. Set a Remote FS Root, a home directory for the master on the slave machine.
          1. For a Windows slave, use something like: "C:Jenkins"
          2. TODO: add details.
        3. Select the appropriate Usage setting:
          1. For an additional worker: Utilize this slave as much as possible 
          2. For specialized jobs: Leave this machine for tied jobs only
        4. Launch Method:
          1. An easy way to control a Windows slave is by using Launch slave agents via Java Web Start  (Recommended for Windows)
          2. TODO: add steps for other methods.
        5. Availability --> Keep this slave online as much as possible
          1. TODO: add details for each option.
        6. Press OK.
      5. Now you need to connect your slave machine to the master using the following steps.
        1. Open a browser on the slave machine and go to the Jenkins master server url (http://yourjenkinsmaster:8080).
        2. Go to Manage Jenkins > Manage Nodes, Click on the newly created slave machine. You will need to login as someone that has the "Connect" Slave permission if you have configured global security.
        3. Click on the Launch button to launch agent from browser on slave.
        4. Run the program.
          1. If you encounter connection issue, then you could enlarge the popup windows to see the master port used and check your network configuration (firewall, port forward, ...)
        5. Now you should see the Slave machine connected under Nodes.
      6. If you want the service to run on start-up of the slave machine do the following (Windows only directions):
        1. In the Slave agent program running on your slave machine, 
        2. click File --> Install as Windows Service. 

          Note that this feature requires ".Net Framework 3.5"
        3. Start, type Services and Select the Services program.
        4. Find Jenkins Slave in the list, Double click to open.
        5. Select Startup type --> Automatic.
        6. Go to the Log On tab, change the Log on as to a user of your choice (Special user account Jenkins recommended).
        7. Make sure that auto login is set for the slave machine for the user account, then the VM (or physical computer) should connect and be available when needed.

    https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines

  • 相关阅读:
    使用VS2013直接升级到VS2019,Cmake编译CCC4.0版本错误记录
    最近使用LuaSqlite3时,不得不说的——事务提交ATTACH语句的巨坑
    LuaSocket学习之tcp服务端
    LuaSocket HTTP 初识记录
    LuaRocks安装教程
    Lua5.1-----函数可变参数详解
    DataTable与json互转,字段类型信息丢失问题初探
    json数组与对象数组
    asp.net中封装路由信息的对象--RouteData源码
    人类的心理行为模式(几个心理学实验)
  • 原文地址:https://www.cnblogs.com/softidea/p/5603261.html
Copyright © 2011-2022 走看看