-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 1.480.1
I have a matrix job that needs to trigger another matrix job, with parameters, as soon as it starts - and then just continue with its own execution, without waiting for the 'child' to complete.
The problem is that the 'child' gets triggered several times per one 'parent' run - usually twice. The 'child' build information looks something like this:
Build 115:
Started by upstream project test_job/label=A build number 181
Build 116:
Started by upstream project test_job/label=B build number 181
Started by upstream project test_job/label=C build number 181
Started by upstream project test_job/label=D build number 181
I assume that this is using the trigger other projects build step within the matrix job.
In this case the build step is run for every configuration that the main project is configured for, as each environment is different and have the different axis values which can be used to trigger other projects with these parameters.
So is working as expected in this case.
However to trigger the both matrix jobs only once have a upstream job of both matrix jobs and trigger them both from that, and setup parameters in that, passed to both jobs.
i.e. Matrix_trigger -> matrix_1
\> matrix_2