Hi All
I've got problem with triggering Gitlab pipeline from Automation setting in Jira. I've created a rule wich should send web request to trigger running pipeline in Gitlab. Using curl from command line it works fine, e.g:
curl -X POST -F token=some_token -F ref=main "https://gitlab.com/api/v4/projects/some_project_id/trigger/pipeline"
In Automation settings, i've got right target, using content-type as multipart/form-data, as request body i'm using "Custom" setting. "Custom data" field is set as:
-F token=some_token -F ref=main
(of course token and project are specific to Gitlab project). Trying to validate request, got bad request (400) with payload:
{ "error": "ref is missing, ref is empty, token is missing" }
I'll found solution: "Custom data" field should look like this (pretty simple):
ref=main&token=some_token
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.