Skip to content

feat(ci): add command to show full gitlab-ci configuration

Sebastian Gumprich requested to merge gitlab-community/cli:glab_ci_show into main

Description

This command prints out the full gitlab-ci.yml. I mostly copied the code from the lint-command.

Related Issues

Resolves #7409 (closed)

How has this been tested?

> ~/dev/glab/bin/glab ci show .gitlab-ci.yml
---
variables:
  FORMAT: codeclimate
ansible:
  image: pipelinecomponents/ansible-lint:0.60.0
  script:
  - cd $ANSIBLE_PATH
  - chmod g-w,o-w .
  - echo $ANSIBLE_VAULT_PASSWORD > .vault.key

[...]

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap

Merge request reports