Skip to content

Add runner description to commands

Miguel Rincon requested to merge 383139-add-runner-description into master

What does this MR do and why?

This change adds the runner description to the runner registration commands, escaped for environments that use bash and powershell.

Before:

gitlab-runner register  ...

After:

gitlab-runner register  ...  --description 'My runner'

Note: While working on this I refactored the components so the entire runner is accessible by the registration_instructions.vue component.

Screenshots or screen recordings

image

How to set up and validate locally

  1. Enable the feature flag: in your console rails c, and then Feature.enable(:create_runner_workflow)
  2. Visit Admin -> CI/CD -> Runners
  3. Select the "New instance runner" button
  4. Input values to create a new runner, select a platform you want.
  5. Confirm the installations instructions are correct for all platforms and they update according to the selection

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #383139 (closed)

Edited by Miguel Rincon

Merge request reports

Loading