Fork me on GitHub

Herr Knedel/Synology-Nas: 设置 Gitlab 触发器

Created Sun, 16 Feb 2020 00:00:00 +0000 Modified Sat, 02 Apr 2022 16:52:33 +0000 难度等级: 人人可做

99 Words

为了自动触发Gitlab流水线,必须创建一个所谓的触发器。你可以在项目设置中创建任意多的触发器。

这些触发器看起来像这样。当然,(占位符)必须被替换。
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!