Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,758
    • Issues 44,758
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,331
    • Merge requests 1,331
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • 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
  • #223856
Closed
Open
Issue created Jun 23, 2020 by Sean Carroll@sean_carroll🚀Developer

`:release` node in `.gitlab-ci.yml` always requires `script`

Summary

In examples, discussions and test specs, the :release node has always had a script entry. In fact a release job does not need a script node to run, although is may optionally use one.

If however the script node is left out of the yml, it is invalid.

The documentation states that script is always required.

Steps to reproduce

(How one can reproduce the issue - this is very important)

Example Project

Without script

  • example project without script
  • the job does not validate as all just must have a script

Screenshot_2020-06-23_at_14.19.16

With script

  • example project with script
  • the example script is unneeded to create the release in this case
  • the message displayed about invalid yml is because the feature flag is not turned on. This yml validates on a local instance with the flag flipped.

Screenshot_2020-06-23_at_14.22.08

Possible fixes

Make the script node optional for jobs with a release node.

Edited Jun 23, 2020 by Sean Carroll
Assignee
Assign to
Time tracking