简体   繁体   English

仅在从属节点Jenkins中保存构建数据

[英]saving build data only in slave node Jenkins

I set up slave node in Jenkins. 我在Jenkins中设置了slave节点。 However when I am running job in slave node, I realized that build data, workspace and log information are still save in master node(Jenkins server). 但是,当我在slave节点中运行作业时,我意识到构建数据,工作空间和日志信息仍然保存在主节点(Jenkins服务器)中。 Is there a way to save this data in slave node instead of master node? 有没有办法将这些数据保存在从节点而不是主节点?

The job workspace is not saved to the master, unless you mark the entire workspace as an artifact - or you're using the Copy to Slave Plugin . 除非您将整个工作区标记为工件 - 或者您正在使用“ 复制到从属”插件 ,否则作业工作空间不会保存到主工作空间。 Build data, console log, test results and any artifacts are indeed saved on the master. 构建数据,控制台日志,测试结果和任何工件确实保存在主服务器上。 That is the general design of Jenkins; 这是詹金斯的总体设计; it really can't be changed. 它真的无法改变。 Part of the reasoning is that the master is expected to be always on, but the slaves may come and go. 部分原因是预计主人会一直开着,但奴隶可能来去匆匆。 If the data is stored on slave that's not on, it's effectively lost. 如果数据存储在未打开的从属设备上,则会有效丢失。

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

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