summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ci/runner/graphql/show/runner_jobs.query.graphql
blob: 075dbb06190e931ee320b8a7e451796ca0921dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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-link>`
          id
          detailsPath
          group
          icon
          text
        }
        pipeline {
          id
          project {
            id
            name
            webUrl
          }
        }
        shortSha
        commitPath
        finishedAt
        duration
        queuedDuration
        tags
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}