devops-streamdeck icon indicating copy to clipboard operation
devops-streamdeck copied to clipboard

Add pipeline trigger

Open tuc0w opened this issue 5 years ago • 5 comments

It would be great to be able to trigger a specific pipeline to run by the press of a button. It should be easy to implement, it's just a POST: https://docs.gitlab.com/ee/ci/triggers/#triggering-a-pipeline

tuc0w avatar Mar 30 '20 11:03 tuc0w

Do you mean to trigger a manual pipeline?

I was thinking about adding some kind of mechanism to retry a pipeline, but this sounds like a different action, isn't it?

SantiMA10 avatar Mar 30 '20 15:03 SantiMA10

Yes you're right this would be:

POST /projects/:id/pipelines/:pipeline_id/retry

triggering new build uses this endpoint:

POST /projects/:id/trigger/pipeline

tuc0w avatar Mar 30 '20 15:03 tuc0w

@SantiMA10 do have any idea when you can work on this? At the moment I am using API Ninja to achive this, but a more "native" feeling with your Plugin would be great :)

tuc0w avatar Aug 03 '20 18:08 tuc0w

@tuc0w sorry, but I'm a bit busy lately, I will work on it when I have some free time

meanwhile, if you want to work on it I will be happy to review a PR

SantiMA10 avatar Sep 14 '20 06:09 SantiMA10

Maybe we can add this a long-press action, following this example: https://github.com/elgatosf/streamdeck-counter/blob/master/Sources/com.elgato.counter.sdPlugin/code.html

SantiMA10 avatar Sep 18 '20 16:09 SantiMA10