we have a fairly central Buildjob which is triggerd by VCS changes.Depending on the kind of change, it is neccessary to run other Buildjobs on successful completion of the Job.
Currently, we set a couple of (boolean) configuration parameters in one buildstep of the main Job depending on the type of change. An addional (last) buildstep then runs a quite complicated set of curl requests and sed statements to find the required BuildID and trigger the BuildJob based on the various values of said parameters.
As this is a quite complicated and fragile set up, I would like to know if there is a possibility to set a (artefact|System Property|event|...whatever...) and have another BuildJob trigger on successful Build of $mainJob if this is set.
Obviously, this should not be exclusive, as the "secondary" buildjobs might have additional triggers (as in VCS-Trigger, manual run, ...).
Has anyone done this before and could gi