SantiMA10 / devops-streamdeck

👀 Check the status of your CI/CD environments using your Stream Deck.
MIT License
99 stars 13 forks source link

Add pipeline trigger #23

Open tuc0w opened 4 years ago

tuc0w commented 4 years ago

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

SantiMA10 commented 4 years ago

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?

tuc0w commented 4 years ago

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 commented 4 years ago

@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 :)

SantiMA10 commented 4 years ago

@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 commented 3 years ago

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