开发者

How do you prevent a Hudson slave from archiving artifacts?

开发者 https://www.devze.com 2022-12-23 02:51 出处:网络
It turns out our slaves spend a considerable amount of time moving the archived artifacts back to the master Hudson node. It at least triples the duration of the build. It would be nice if there would

It turns out our slaves spend a considerable amount of time moving the archived artifacts back to the master Hudson node. It at least triples the duration of the build. It would be nice if there would be a way to prevent it. However, setting the maximum number of builds to keep doesn't have an influence at all. Is there another way to prevent sending the results back to the central Hudson master?

Note that I actually don't have the archive artifacts option checked. However, the slave is still 'archiving' whatever it finds to the master:

[HUDSON] Archiving .../pom.xml to .../pom.xml
[HUDSON] Archiving .../...-0.1.3-SNAPSHOT.jar to .../...-0.1.3-SNAPSHOT.jar

... with the second path in every li开发者_Python百科ne always being a location on the master. Is this a bug? Is there a workaround?


Maven jobs have an option for not archiving artifacts in the advanced options of the Maven section - that is, separate from the "Archive Artifacts" publisher. By default, the Maven jobs will archive the Maven artifacts of a module automatically, regardless of the "Archive Artifacts" publisher settings. The advanced option for Maven projects was added a couple months ago, if I remember correctly.


It sounds that you don't need the archived artifacts at all. So check the archive artifacts option for your jobs. If it is unchecked and it still copies the artifacts to the master to scrap them right away, open a bug report with Hudson.

If you need some, play around with the advanced options for archive artifacts. They offer an include as well as an exclude option.

0

精彩评论

暂无评论...
验证码 换一张
取 消