Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publisher to update the commit/merge request status in GitLab #229

Conversation

coder-hugo
Copy link
Contributor

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 initializer 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

@jenkinsadmin
Copy link
Member

Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests.

@coder-hugo coder-hugo added this to the 1.2.0 milestone Mar 15, 2016
@coder-hugo coder-hugo merged commit c457e13 into jenkinsci:release-1.2 Mar 16, 2016
fetzerch added a commit to fetzerch/jenkins-job-builder that referenced this pull request Jun 17, 2016
Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Reference: jenkinsci/gitlab-plugin#229

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
openstack-gerrit pushed a commit to openstack/openstack that referenced this pull request Jul 1, 2016
Project: openstack-infra/jenkins-job-builder  6e687e2e3222efdb75e619cd3f9a12d1c32351d7

Add support for GitLab notifier and connection property

Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Reference: jenkinsci/gitlab-plugin#229

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
openstack-gerrit pushed a commit to openstack-infra/jenkins-job-builder that referenced this pull request Jul 1, 2016
Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Reference: jenkinsci/gitlab-plugin#229

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
exceed-alae pushed a commit to exceed-alae/gitlab-plugin that referenced this pull request May 20, 2022
[JENKINS-31214] added Job DSL for GhprbTrigger
mika pushed a commit to sipwise/jenkins-job-builder that referenced this pull request Apr 29, 2024
Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
Reference: jenkinsci/gitlab-plugin#229
mika pushed a commit to sipwise/jenkins-job-builder that referenced this pull request Apr 29, 2024
Adds a gitlab-notifier publisher that allows to set the commit status
on GitLab. The GitLab connection is specified using a property.

Reference: jenkinsci/gitlab-plugin#229

Change-Id: I45b4ec2e3c5ff08922270c5c0539d4ee2086a752
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants