Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
WorkflowRun.execution must be set before the execution starts.
Otherwise Owner.get can throw an error claiming that the build has not started yet. We do need to null out the field if starting fails, but we can do that subsequently. Amends the fix of JENKINS-29221 in #149, which introduced this race condition. Originally-Committed-As: 99ca243654430737de5f3be6367c9b24ccfdf5bb
- Loading branch information