How to Transfer Project Results Upstream Down Projects in Jenkins

I want to use project results to generate parameters that can be passed to multiple child projects using something like Parameterized Trigger Plugin .

In particular, I want the parent project to be a kind of resource manager for my testing servers. After creating a project, there are many complex test suites to run, and only for a few test servers. Instead of hard code on which test servers I want to run each test, I want the project resource manager:

  • Determine which servers are available / running.
  • Select the subsets of available servers for each test.
  • Transfer sets of IP addresses to multiple projects that will run in parallel.

I know that perhaps it is possible if the resource manager writes these parameters to the file system and sets up child projects to read from these files, but I am sure that this is the type of problem that the plugin has already resolved. I just don’t see how the trigger plugin can extract arbitrary parameters from the native output of the assembly.

0
source share
1 answer

There is a plugin, but it works on the same principle: it reads the properties file from the file system and loads them as environment variables available for any stage of the project. EnvInject Plugin

It has the ability to generate a list of properties from a script, rather than a properties file.

0
source

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


All Articles