简体   繁体   English

Jenkins 从站能否与主站位于同一节点上?

[英]Can a Jenkins Slave be on the same node as the Master?

I am just starting with Jenkins , and I am confused on the Remote root directory , the WorkDir and the Internal data directory , precisely on their full path, including Hostname .我刚从Jenkins开始,我对Remote root directoryWorkDirInternal data directory感到困惑,正是它们的完整路径,包括Hostname

The slave is supposed to be on a different node, but I don't see where we can specify a Hostname or IP address .从站应该在不同的节点上,但我看不到我们可以在哪里指定HostnameIP address

The examples Remote root directory I have seen so far looks like /var/jenkins , is it on the master node?到目前为止我看到的示例Remote root directory看起来像/var/jenkins ,它在主节点上吗? if not how or where do we specify the remote Hostname or IP address ?如果不是,我们如何或在哪里指定远程HostnameIP address

Same for the Workir , is it remote or local? Workir也一样,它是远程的还是本地的?

Thanks in advance.提前致谢。

Your jenkins master node can run builds and works as an slave too.您的 jenkins 主节点也可以运行构建并作为从节点工作。

Remote root directory is on the slave.远程根目录在从站上。 Manage the slaves is in section "Manage Nodes".管理从站位于“管理节点”部分。 Specify the hostname/IP Address in the launch method option: "via SSH"在启动方法选项中指定主机名/IP 地址:“通过 SSH”

To join a slave: https://medium.com/@chathurams.sa/step-by-step-guide-to-add-jenkins-slave-nodes-f2e756c8849e要加入从站: https://medium.com/@chathurams.sa/step-by-step-guide-to-add-jenkins-slave-nodes-f2e756c8849e

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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