jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 618 forks source link

Feature: GitLab Release #581

Open Alien2150 opened 7 years ago

Alien2150 commented 7 years ago

Hey guys,

what do you think about bringing the gitlab-plugin a step further and adding a new feature to enable releases via Gitlab.Something like:

"gitlabRelease tagSchema: '1.0.%', files: 'my-fancy.jar', changelogPath: 'my-change-list.txt' . The API for this is basically there and it can be added. I volunteer for making a PR and some testing on my end.

omehegan commented 7 years ago

I guess this would be a hook into a feature of GitLab which I'm not familiar with. Is it this? https://docs.gitlab.com/ce/workflow/releases.html

If that's what you're referring to, I agree that it would be a nice feature to add to the plugin. If you want to submit a PR, we will consider it.

Alien2150 commented 7 years ago

Thanks omehegan for adding a comment. I was looking for a way to automate this process (via step) as I have a use-case for that at my working place (Where we do want to create those releases automatically). Think the API is basicaly there and I also have begun adding some code. Will report back as soon as I have something to show.

sbrassely commented 7 years ago

As of the current version of Gitlab's release feature, it's curently not possible to attach artifacts unless adding a link to our artifact in the release's description.

But, I'm agree, it would be a nice feature.

Alien2150 commented 7 years ago

Noticed that already @sbrassely 👍 Also had to rework getting the "projectId" a bit (Could be specified via argument (Alternatively to getting it from the webhook))

Alien2150 commented 7 years ago

Maybe a "linkTo" param @sbrassely ?