gitlab4j-api
gitlab4j-api copied to clipboard
Add params (List<Variable>) to play job with params
https://github.com/gitlab4j/gitlab4j-api/blob/d61308abb39ee0b59c47491ec79b207c2ba6bbc0/src/main/java/org/gitlab4j/api/JobApi.java#L505
Hello @zalgoro
I'm not sure to understand your request. Here is Job API documentation. https://docs.gitlab.com/ee/api/jobs.html#play-a-job As you can see, according to the linked documentation, there is no variables available.
Did you need to create a pipeline with variables? If so, does the Pipeline API works for you? See https://github.com/gitlab4j/gitlab4j-api/blob/db8f9254c7b42c68522826318821be8d7bb8b075/src/main/java/org/gitlab4j/api/PipelineApi.java#L285-L297
@jabby As far as I can see since your comment there's a job_variables_attributes
parameter on the POST /projects/:id/jobs/:job_id/play
endpoint, see the pic & docs:
Would you accept such a PR? The parameter was introduced in Gitlab 14.9, March of 2022.
@vilmosnagy PR are welcomed of course.
It seems to me that there's already an open PR for it: #836
Happy to hear that (https://github.com/gitlab4j/gitlab4j-api/pull/836), It would be nice to merge it asap, and then close the issue.