Jenkins matrix configuration artifacts

I am currently experimenting with a matrix projected into jenkins. It works well, but I'm curious how to get artifacts so that they appear on the home page under the link "Recent Successful Artifacts". Currently, it seems that artifacts are embedded in the target directory for each axis configuration.

Is there a way to combine artifacts into one place through jenkins?

+6
source share
2 answers

A collector collects Matrix artifacts, but is actually a simple FreeStyle task. In the assembly view, all artifacts are displayed, and after that a hint of how it is configured. Please note that the "smoothing" and "optional" functions allow you to skip platforms from the set, but first "remove the workspace" ensures that you do not transfer obsolete artifacts.

Assembly Type: collect_build_view

Type of configuration:

collect_config_view

+3
source

I do not think that this is currently possible “out of the box” (and I worked with matrix projects for some time). You can use the following workaround: start your matrix task from another task (collector) using the Parameterized Trigger Plugin , passing it a place in the collector workspace where you put the artifacts. Matrix subtasks will put artifacts there. The collector will wait for the completion of the matrix task and publication.

You can then use the sidebar plugin to place a link to your main task page, pointing to the "Last Successful Artifact" link for Collector.

+2
source

Source: https://habr.com/ru/post/913980/


All Articles