jenkins-gitlab-merge-request-builder-plugin | allows jenkins to build merge requests | Plugin library
kandi X-RAY | jenkins-gitlab-merge-request-builder-plugin Summary
kandi X-RAY | jenkins-gitlab-merge-request-builder-plugin Summary
A plugin that allows jenkins to build merge requests in Gitlab
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the build
- Find trigger
- Build a Gitlab merge request
- Connect to GitLab
- Add environment variables to the Gitlab environment
- Called when a queue is pressed
- Initialize the trigger
- Stops the job
- Checks for GitHub webhooks
jenkins-gitlab-merge-request-builder-plugin Key Features
jenkins-gitlab-merge-request-builder-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on jenkins-gitlab-merge-request-builder-plugin
QUESTION
For my repository on GitLab I have a Merge Request Hook configured which triggers a build on a Jenkins CI machine. The hooks works as expected when a merge request is opened.
The webhook is configured with the following triggers:
- URL: https://example.com/project/ExampleApp_merge_requests
- Push events: Enabled
- Merge request events: Enabled
- Enable SSL verification: Off
Lately, when I edit the description of the merge requests then the hook also notifies the CI machine.
Here is an example POST request:
ANSWER
Answered 2019-Apr-02 at 12:25Under triggers (Settings -> integrations) perform the below:
- Enable push events (optional branch name - Branch is created via push events even before MR is possible)
- Enable MR event triggers in your project repo
This URL will be triggered when a merge request is created/updated/merged
In Jenkins Plugin configuration -
- Check "Push Events" (Any commits by way of direct Push or Creation)
- Un-check "Opened Merge Request Events"
- Check "Accepted Merge Request Events" (Any commits by way of Merge Request)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jenkins-gitlab-merge-request-builder-plugin
Install the plugin in Jenkins. The plugin is hosted on the Jenkins Plugin repository Go to Jenkins -> Manage Plugins -> Available Search for GitLab Merge Request Builder And install it Ensure you restart Jenkins
Go to Manage Jenkins -> Configure System -> GitLab Merge Request Builder
Set the GitLab Host URL to the base URL of your GitLab server
Set your Jenkins Username for the Jenkins user (defaults to jenkins)
Set your Jenkins API Token for the Jenkins user. This can be found by logging into GitLab as Jenkins and going to the user profile section.
Set/change any of the other available parameters as necessary. If you host GitLab over an SSL connection you may want to enable ignoring certificate errors.
Save to preserve your changes.
Go to Manage Jenkins -> Configure Global Security and set Markup Formatter to Safe HTML. It will make Jenkins display links in build history properly.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page