Skip to content

Instantly share code, notes, and snippets.

@baymac
Last active May 15, 2019 05:01
Show Gist options
  • Select an option

  • Save baymac/4483acfc2e12b915e7611f8756ed54be to your computer and use it in GitHub Desktop.

Select an option

Save baymac/4483acfc2e12b915e7611f8756ed54be to your computer and use it in GitHub Desktop.
Releasing GitLab Branch Source Plugin to Jenkins

Hi all,

I am accepted to Google Summer of Code 2019 under Jenkins and my project is based on adding Multibranch Pipeline Support to GitLab.

Generally the SCM plugins are divided into 3 separate plugins, namely:

  1. SCM-api-plugin: For wrapping API into a plugin

  2. SCM-plugin: For build triggers, auth and webhooks management

  3. SCM-branch-source-plugin: For branches, MRs, tags indexing and build for all jobs

e.g. - github-api-plugin, github-plugin, github-branch-source-plugin

Since, GitLab does not have such an api-plugin we decided to choose an appropriate Java API for GitLab and wrap it into a plugin. GitLab API Plugin has been released to Jenkins Plugins Centre: https://plugins.jenkins.io/gitlab-api

Find GitLab API Repository here: https://github.com/jenkinsci/gitlab-api-plugin

The reasons for choosing a gitlab4j API is mentioned in the wiki page: https://wiki.jenkins.io/display/JENKINS/GitLab+API+Plugin

Our project plan is to modify the gitlab-plugin to depend on this new api-plugin and also to develop the gitlab-branch-source-plugin to support this new api-plugin.

For more details, my proposal can be found here: https://docs.google.com/document/d/1YpuCC129U8KPXAwiXRXQ_4XWuLursPGl3rzQjz43-CY/edit?usp=sharing

Our plan right now:

  1. Develop Kohsuke's GitLab Branch Source Plugin - https://github.com/jenkinsci/gitlab-branch-source-plugin.

  2. Take inspiration from your codebase and give you credits

  3. Collaborate with contributors of this repository for code contributions, code reviews, insights etc.

What do you think about this idea? We can work together to get it released to Jenkins Official Update Center soon.

Reporting this upon suggestion of @grfullerton jenkinsci/gitlab-plugin#499 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment