Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #24935
Closed
Open
Created Nov 24, 2016 by Tero Pihlaja@TeroPihlaja

Specify variables when running a manual job

Problem to Solve

When users want to execute manual jobs, they can click on the Play button. There is no chance there to specify a variable at that point without affecting the whole project, though. There are cases that can benefit from this: for example to select one of the possible behavior of the job, or to pass custom values to the application that is going to be deployed.

Proposal

Allow users to specify variables when running a manual job. Users will be asked to enter key/values pairs (just like the start a pipeline page), and these will be passed to the job overriding possible existing values.

Starting a manual job with variables defined should be an optional action, and not the default (i.e., users just running a manual action in a normal way should not have to click extra times to say that they don't want to specify any variables.)

Solution

Issue scope has been defined as to only include this functionality on the Job detail view/job log page. We'll directly include the option for variables there.

  • Job detail page/job log page will include variable fields similar to /pipelines/new
  • Empty state width will be expanded to 990px
  • The text will be left aligned to be inline with empty state documentation/component
  • Description updated to This job requires manual intervention to start. Before starting this job, you can add variables below for last-minute configuration changes.
  • When retrying a manual job the job page will be reset to the empty state. This means another click will be necessary to trigger the manual action, but the user will also be offered the option to re-input variables.
  • Note: Dropdown in the mockup is not part of the scope of the current issue.

image

Edited Jul 10, 2019 by Dimitrie Hoekstra
Assignee
Assign to
Time tracking