diff options
Diffstat (limited to 'app/assets/javascripts/pipelines/graphql')
3 files changed, 24 insertions, 0 deletions
diff --git a/app/assets/javascripts/pipelines/graphql/mutations/retry_mr_failed_job.mutation.graphql b/app/assets/javascripts/pipelines/graphql/mutations/retry_mr_failed_job.mutation.graphql new file mode 100644 index 00000000000..022d461dbec --- /dev/null +++ b/app/assets/javascripts/pipelines/graphql/mutations/retry_mr_failed_job.mutation.graphql @@ -0,0 +1,5 @@ +mutation retryMrFailedJob($id: CiBuildID!) { + jobRetry(input: { id: $id }) { + errors + } +} diff --git a/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs.query.graphql b/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs.query.graphql index 2c842f1ac77..3d69c5e451b 100644 --- a/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs.query.graphql +++ b/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs.query.graphql @@ -3,7 +3,9 @@ query getPipelineFailedJobs($fullPath: ID!, $pipelineIid: ID!) { id pipeline(iid: $pipelineIid) { id + active jobs(statuses: [FAILED], retried: false, jobKind: BUILD) { + count nodes { id allowFailure @@ -19,6 +21,7 @@ query getPipelineFailedJobs($fullPath: ID!, $pipelineIid: ID!) { } name retried + retryable stage { id name @@ -26,6 +29,10 @@ query getPipelineFailedJobs($fullPath: ID!, $pipelineIid: ID!) { trace { htmlSummary } + userPermissions { + readBuild + updateBuild + } webPath } } diff --git a/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs_count.query.graphql b/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs_count.query.graphql new file mode 100644 index 00000000000..b70e95deab6 --- /dev/null +++ b/app/assets/javascripts/pipelines/graphql/queries/get_pipeline_failed_jobs_count.query.graphql @@ -0,0 +1,12 @@ +query getPipelineFailedJobsCount($fullPath: ID!, $pipelineIid: ID!) { + project(fullPath: $fullPath) { + id + pipeline(iid: $pipelineIid) { + id + active + jobs(statuses: [FAILED], retried: false, jobKind: BUILD) { + count + } + } + } +} |