Skip to content

Inputs support for CI/CD configuration file

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

In settings > CICD > General pipelines > CI/CD configuration file, if the target pipeline supports inputs, the UI should display a similar UI as Build > Pipelines > New pipeline > inputs.

Example:

# pipeline.yml
spec:
  inputs:
    stage: 
      description: "Stage of job."
      default: test

---

example-job:
  stage: $[[ inputs.stage ]]
  script:
    - echo "helloworld"

When setting settings > CICD > General pipelines > CI/CD configuration file to pipeline.yml (or an external config file, I tried to keep it simple for a minimum reproducible example), I expect a similar interface for inputs as in "run a new pipeline" page.

Edited by 🤖 GitLab Bot 🤖