The context of this is that I want to update a third party system with statistics from a build once it has finished (eg test passed /failed code coverage). I don't think i am able to do this as part of the build, but if I can that 's great.
I want to report the statistics of build config A. Currently my plan is to have a build config, X which is triggered by the finishing of the build A and runs a script. This build will then get the statistics from build A by calling the rest API, then call the third party system's API with that data.
but also I want to be able to do the same thing for Build configs B and C, without having to add more 'reporting' builds. To be able to do that, I need to be able to detect, when running build config X, was this build triggered by the finishing of A, B or C. hopefully there's a variable I can feed into a script.