Fork me on GitHub

Herr Knedel/Synology-Nas: Setting up Gitlab Triggers

Created Sun, 16 Feb 2020 00:00:00 +0000 Modified Mon, 14 Mar 2022 18:18:09 +0000 Schwierigkeitsgrad: Für jeden machbar

65 Words

In order to trigger a Gitlab pipeline automatically, a so-called trigger must be created. You can create as many triggers as you want in the project - settings.

These triggers look like this. Of course, the (placeholders) must be replaced.

x
+
Terminal

$ curl -X POST -F token=(TOKEN) -F ref=(BRANCH) http://(ip):(port)/api/v4/projects/(project-id)/trigger/pipeline

This curl call can be entered into the Synology task scheduler, Done!