Skip to content

glap api 'projects/:id/trigger/piipeline' fails with ref and token missing

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: 1.67.0
  • Operating system and version: RHEL 8.10
  • Gitlab.com or self-managed instance? self managed
  • GitLab version (if self-managed) 16.11.6-ee
  • I have performed glab auth status to check for authentication issues
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output

Summary

Running glab api 'projects/:id/trigger/pipeline' -F "DEBUG=true" results in

{
  "error": "ref is missing, ref is empty, token is missing"
}

Environment

  • OS: 4.18.0-553.33.1.el8_10.x86_64
  • SHELL: /bin/bash
  • TERM: xterm-256-color
  • GLAB: 1.67.0

Other:

Steps to reproduce

  • Create a pipeline with sub-pipelines.
  • Attempt to trigger a job in the sub-pipeline with glab api as above

What is the current bug behavior?

{
  "error": "ref is missing, ref is empty, token is missing"
}

What is the expected correct behavior?

Runs the job with the included variables

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information