Skip to content

Improve `script` with `trigger` error message

Avielle Wolfe requested to merge 408238-no-trigger-with-script into master

What does this MR do and why?

The script and trigger CI keywords cannot be used together, but the existing error message wasn't clear. This MR adds a mutually exclusive validator to Entry::Processable that ensures that the user gets an understandable error.

It also rewords the error from MutuallyExclusiveValidator for clarity. The validator was not being used anywhere, so this is a safe change to make

Changelog: fixed

Screenshots or screen recordings

Before

Screenshot 2023-10-17 at 16.33.21.png

After

Screenshot 2023-10-17 at 16.32.04.png

How to set up and validate locally

In the CI editor, paste this config:


test_job: trigger: root/component-project script: ls

See that you get an error reading these keys cannot be used together: script, trigger

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 #408238 (closed)

Merge request reports