summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql')
-rw-r--r--app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql38
1 files changed, 38 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql b/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql
new file mode 100644
index 00000000000..edfc22f644b
--- /dev/null
+++ b/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql
@@ -0,0 +1,38 @@
+#import "~/graphql_shared/fragments/page_info.fragment.graphql"
+
+query getRunnerJobs($id: CiRunnerID!, $first: Int, $last: Int, $before: String, $after: String) {
+ runner(id: $id) {
+ id
+ projectCount
+ jobs(before: $before, after: $after, first: $first, last: $last) {
+ nodes {
+ id
+ detailedStatus {
+ # fields for `<ci-badge>`
+ id
+ detailsPath
+ group
+ icon
+ text
+ }
+ pipeline {
+ id
+ project {
+ id
+ name
+ webUrl
+ }
+ }
+ shortSha
+ commitPath
+ finishedAt
+ duration
+ queuedDuration
+ tags
+ }
+ pageInfo {
+ ...PageInfo
+ }
+ }
+ }
+}