gaia-pipeline/gaia

Integration with Gitea

X-Ryl669 opened this issue · 5 comments

Thanks for your code. It's very good.

I was wondering how can I integrate it with Gitea's webhook ?
(Said differently, how can I trigger a pipeline from outside the admin interface via a HTTP call ?)

You can do that with the pipeline remote trigger action.

If you access your pipeline, you'll see a trigger token like this:

Screenshot 2020-05-26 at 9 44 13

Use that to trigger a pipeline by calling the rest endpoint without the need for an authenticated client like this:

curl -X POST http://localhost:8080/api/v1/pipeline/2/6ffb6acf-8438-5cd7-b819-0d18e9c47b68/trigger

Uh, that was actually not working correctly. :/ Bummer.

Here is the fix: #251

But I'm afraid that it will not be released any time soon.... so you'll have to build your own gaia to make it work....

This has been fixed and released.

Indeed, it's working with the trigger URL.

Yay!