jenkins中,slave節點有多種啟動方式,其中一種是“Launch slave agents via Java Web Start”,即通過JNLP啟動一個代理來啟動slave。這種方式比較适用于slave部署在windows系統的計算機上。
官方描述如下:
Starts a slave by launching an agent program through JNLP. The launch in this case is initiated by the slave, thus slaves need not be IP reachable from the master (e.g. behind the firewall.) It is still possible to start a launch without GUI, for example as a Windows service.
這種啟動方式的配置項中,有一個“Tunnel connection through”,可以用來配置JNLP使用指定的IP位址和端口,格式為:"HOST:PORT", ":PORT", or "HOST:"。