Skip to content

Update manual job message for protected jobs

What does this MR do and why?

Related to #346796 (closed)

It changes the message for manual jobs that have protected environments when the users don't have the permissions to trigger those jobs.

Screenshots or screen recordings

Before:

image

After:

image

How to set up and validate locally

  1. Create a new project
  2. Configure the CI to have a manual job with an environment
  3. Set up protected environments to maintainers only https://docs.gitlab.com/ee/ci/environments/protected_environments.html#protecting-environments
  4. Create a new pipeline
  5. Invite a user to the project as a developer
  6. Login as the developer and go to the deployment job
  7. The developer should see the new message

MR acceptance checklist

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

Edited by Marius Bobin

Merge request reports