Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 50,611
    • Issues 50,611
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,552
    • Merge requests 1,552
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #341151
Closed (duplicated) (duplicated)
Open
Issue created Sep 17, 2021 by Michael Friedrich@dnsmichi🌈Developer

CI/CD pipeline editor gives `unknown tag` error when using !reference

Summary

Using !reference in the script section scope renders an error in the CI/CD pipeline editor UI, saying it is an unknown tag - unknown tag <!reference>.

Steps to reproduce

  1. New project, navigate to CI/CD > Pipeline Editor
  2. Add the minimal configuration which uses !reference
stages:
  - lint  
  - test

.python-req:
  script:
    - pip install pyflakes

lint-python:
  extends: .python-req
  stage: lint
  image: python:latest
  script:
    - !reference [.python-req, script]
    - pyflakes python/

Example Project

What is the current bug behavior?

!reference is marked as an error in the UI, while the configuration actually is valid.

What is the expected correct behavior?

UI does not underline !reference as an error, while saying the config is valid on top.

Relevant logs and/or screenshots

image

Possible fixes

The keyword and scope matching seems to be missing from the linting specification.

cc @dhershkovitch @nadia_sotnikova @jreporter

Assignee
Assign to
Time tracking