Support a way to retrigger part of matrix job
#2 Updated by Teemu Murtola over 3 years ago
In our current setup, it might be possible to get this work with smaller changes to Gerrit Trigger + some code in the workflow job that triggers the matrix build. In theory, all that would be needed would be to have a link to the original build in the Jenkins cause object that gets created when you retrigger a build, and a way to access the original build through that from the workflow script. We could then write some code in the workflow script to 1) track the failed configurations for each workflow, e.g., as an artifact (this can be tricky, but in theory should be possible by accessing some Jenkins internals from the script, and this would allow also other improvements to current behavior), and 2) use that information when building a retriggered build to only trigger the matrix configurations that previously failed.