Add publishers to update the commit/merge request status in GitLab #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves the configuration (and execution) of the GitLab commit status updates to a publisher ("Publish build status to GitLab commit (GitLab 8.1+ required)"). With this change its possible to trigger builds manually without adding any special parameter and the status of the corresponding commit in GitLab gets updated. Additionally there is a XStream converter that migrates the configuration of old jobs to use this publisher automatically depending on their GitLabPushTrigger's configuration.
There is just one thing missing of the previous functionality: The commit status "pending" will not be sent to GitLab. The reason for this is that I haven't found any extension point that throws an event or something similar if a build was triggered but not yet started.
Fixes #162