mattermost-plugin-gitlab icon indicating copy to clipboard operation
mattermost-plugin-gitlab copied to clipboard

Add command to run a new CI Build

Open aaronrothschild opened this issue 5 years ago • 6 comments

Many customers are ocnsidering gitlab to replace Jenkins for Ci builds. But we don’t have a way to let users trigger a new build in the Gitlab projects. This ticket is a request to add a slash command such as /gitlab build <project> to kick-off a build. After the build is complete, the user should be sent a message in the channel they initiated the command from with a link to the artifact/build output.

aaronrothschild avatar Oct 02 '20 17:10 aaronrothschild

is there a GitLab api that you can link here?

tw-ayush avatar Oct 06 '20 05:10 tw-ayush

https://docs.gitlab.com/ee/api/pipelines.html#create-a-new-pipeline seems like the right one to use

hanzei avatar Oct 08 '20 20:10 hanzei

Cool, thanks I'll have a look at it and reach back to you in case of doubt.

tw-ayush avatar Oct 09 '20 08:10 tw-ayush

Awesome, thanks for taking a look :+1:

hanzei avatar Oct 09 '20 08:10 hanzei

@hanzei @aaronrothschild based on the issue discerption i believe this to be more suitable. The other api seems more like a process to set-up a new pipeline (though i don't see any mention of how one will send the pipeline tasks in it). Please have a look and let me know about what you think.

tw-ayush avatar Oct 10 '20 12:10 tw-ayush

@hanzei @aaronrothschild based on the issue discerption i believe this to be more suitable. The other api seems more like a process to set-up a new pipeline (though i don't see any mention of how one will send the pipeline tasks in it). Please have a look and let me know about what you think.

never mind I read through the lib.. seems-like the one you sent is good 👍

tw-ayush avatar Oct 10 '20 13:10 tw-ayush

Fixed with https://github.com/mattermost/mattermost-plugin-gitlab/pull/302

hanzei avatar Nov 29 '22 16:11 hanzei