
Use GraphQL API from Gitlab to find jobs dependencies in a pipeline. E.g: Find all dependencies for jobs starting with "iris-" ```sh .gitlab-ci/bin/gitlab_gql.py --sha $(git -C ../mesa-fast-fix rev-parse HEAD) --print-dag --regex "iris-.*" ``` Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17791>
12 lines
292 B
Bash
Executable File
12 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Helper script to download the schema GraphQL from Gitlab to enable IDEs to
|
|
# assist the developer to edit gql files
|
|
|
|
SOURCE_DIR=$(dirname "$(realpath "$0")")
|
|
|
|
(
|
|
cd $SOURCE_DIR || exit 1
|
|
gql-cli https://gitlab.freedesktop.org/api/graphql --print-schema > schema.graphql
|
|
)
|