Search code examples
jenkinsmulti-configuration

Jenkins: Parameterize triggered job's name OR Link two multi-configuration jobs


My company produces a product in multiple flavors, on Linux and Android for example. On Jenkins, these are produced on a multi-configuration job.

I need to build a wrapper to the product on a different job. My manager insists that the wrapper and the product be built on separate jobs.

My problem is, I cannot seem to be able to pass axis variables. Using the parameterized build plugin, "Trigger parameterized build on other projects" doesn't take parameters (how terribly ironic), and axis variables seem to be ignored (see example image).

Does anyone have a viable solution?

jenkins_example


Solution

  • So here's my own answer for now:

    It seems that linking matrix jobs on child job basis is impossible (or impractical. You could theoretically make a huge flexible publish if/else, but I didn't try that).

    Instead I now build the whole second matrix once the first matrix is done. I trigger it like this: Triggering the matrix

    And I copy the artifacts like this: Copying the artifacts