Skip to content

Add variables argument to `JobPlay`mutation

Avielle Wolfe requested to merge 386272-add-variables-to-play-mutation into master

What does this MR do and why?

We are transitioning the manual job page to GraphQL, so we now need to make it possible to play a job with a given set of variables via the JobPlay mutation.

Screenshots or screen recordings

With the following manual job:

manual_job:
    script:
        - echo $MANUAL_VAR_1
        - echo $MANUAL_VAR_2
    when: manual

Running the JobPlay mutation with variables:

Screen_Shot_2022-12-20_at_17.23.27

Plays the job, which outputs the variable values:

Screen_Shot_2022-12-20_at_17.23.39

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

Edited by Avielle Wolfe

Merge request reports

Loading