Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/ci/job_type.rb')
-rw-r--r--app/graphql/types/ci/job_type.rb72
1 files changed, 36 insertions, 36 deletions
diff --git a/app/graphql/types/ci/job_type.rb b/app/graphql/types/ci/job_type.rb
index 42b55f47f92..4ea9a016e74 100644
--- a/app/graphql/types/ci/job_type.rb
+++ b/app/graphql/types/ci/job_type.rb
@@ -12,39 +12,39 @@ module Types
expose_permissions Types::PermissionTypes::Ci::Job
field :allow_failure, ::GraphQL::Types::Boolean, null: false,
- description: 'Whether the job is allowed to fail.'
+ description: 'Whether the job is allowed to fail.'
field :duration, GraphQL::Types::Int, null: true,
- description: 'Duration of the job in seconds.'
+ description: 'Duration of the job in seconds.'
field :id, ::Types::GlobalIDType[::CommitStatus].as('JobID'), null: true,
- description: 'ID of the job.'
+ description: 'ID of the job.'
field :kind, type: ::Types::Ci::JobKindEnum, null: false,
- description: 'Indicates the type of job.'
+ description: 'Indicates the type of job.'
field :name, GraphQL::Types::String, null: true,
- description: 'Name of the job.'
+ description: 'Name of the job.'
field :needs, BuildNeedType.connection_type, null: true,
- description: 'References to builds that must complete before the jobs run.'
+ description: 'References to builds that must complete before the jobs run.'
field :pipeline, Types::Ci::PipelineType, null: true,
- description: 'Pipeline the job belongs to.'
+ description: 'Pipeline the job belongs to.'
field :stage, Types::Ci::StageType, null: true,
- description: 'Stage of the job.'
+ description: 'Stage of the job.'
field :status,
type: ::Types::Ci::JobStatusEnum,
null: true,
description: "Status of the job."
field :tags, [GraphQL::Types::String], null: true,
- description: 'Tags for the current job.'
+ description: 'Tags for the current job.'
# Life-cycle timestamps:
field :created_at, Types::TimeType, null: false,
- description: "When the job was created."
+ description: "When the job was created."
field :finished_at, Types::TimeType, null: true,
- description: 'When a job has finished running.'
+ description: 'When a job has finished running.'
field :queued_at, Types::TimeType, null: true,
- description: 'When the job was enqueued and marked as pending.'
+ description: 'When the job was enqueued and marked as pending.'
field :scheduled_at, Types::TimeType, null: true,
- description: 'Schedule for the build.'
+ description: 'Schedule for the build.'
field :started_at, Types::TimeType, null: true,
- description: 'When the job was started.'
+ description: 'When the job was started.'
# Life-cycle durations:
field :queued_duration,
@@ -53,45 +53,45 @@ module Types
description: 'How long the job was enqueued before starting.'
field :active, GraphQL::Types::Boolean, null: false, method: :active?,
- description: 'Indicates the job is active.'
+ description: 'Indicates the job is active.'
field :artifacts, Types::Ci::JobArtifactType.connection_type, null: true,
- description: 'Artifacts generated by the job.'
+ description: 'Artifacts generated by the job.'
field :cancelable, GraphQL::Types::Boolean, null: false, method: :cancelable?,
- description: 'Indicates the job can be canceled.'
+ description: 'Indicates the job can be canceled.'
field :commit_path, GraphQL::Types::String, null: true,
- description: 'Path to the commit that triggered the job.'
+ description: 'Path to the commit that triggered the job.'
field :coverage, GraphQL::Types::Float, null: true,
- description: 'Coverage level of the job.'
+ description: 'Coverage level of the job.'
field :created_by_tag, GraphQL::Types::Boolean, null: false,
- description: 'Whether the job was created by a tag.', method: :tag?
+ description: 'Whether the job was created by a tag.', method: :tag?
field :detailed_status, Types::Ci::DetailedStatusType, null: true,
- description: 'Detailed status of the job.'
+ description: 'Detailed status of the job.'
field :downstream_pipeline, Types::Ci::PipelineType, null: true,
- description: 'Downstream pipeline for a bridge.'
+ description: 'Downstream pipeline for a bridge.'
field :manual_job, GraphQL::Types::Boolean, null: true,
- description: 'Whether the job has a manual action.'
- field :manual_variables, VariableType.connection_type, null: true,
- description: 'Variables added to a manual job when the job is triggered.'
+ description: 'Whether the job has a manual action.'
+ field :manual_variables, ManualVariableType.connection_type, null: true,
+ description: 'Variables added to a manual job when the job is triggered.'
field :playable, GraphQL::Types::Boolean, null: false, method: :playable?,
- description: 'Indicates the job can be played.'
+ description: 'Indicates the job can be played.'
field :previous_stage_jobs_or_needs, Types::Ci::JobNeedUnion.connection_type, null: true,
- description: 'Jobs that must complete before the job runs. Returns `BuildNeed`, which is the needed jobs if the job uses the `needs` keyword, or the previous stage jobs otherwise.'
+ description: 'Jobs that must complete before the job runs. Returns `BuildNeed`, which is the needed jobs if the job uses the `needs` keyword, or the previous stage jobs otherwise.'
field :ref_name, GraphQL::Types::String, null: true,
- description: 'Ref name of the job.'
+ description: 'Ref name of the job.'
field :ref_path, GraphQL::Types::String, null: true,
- description: 'Path to the ref.'
+ description: 'Path to the ref.'
field :retried, GraphQL::Types::Boolean, null: true,
- description: 'Indicates that the job has been retried.'
+ description: 'Indicates that the job has been retried.'
field :retryable, GraphQL::Types::Boolean, null: false, method: :retryable?,
- description: 'Indicates the job can be retried.'
+ description: 'Indicates the job can be retried.'
field :scheduling_type, GraphQL::Types::String, null: true,
- description: 'Type of job scheduling. Value is `dag` if the job uses the `needs` keyword, and `stage` otherwise.'
+ description: 'Type of job scheduling. Value is `dag` if the job uses the `needs` keyword, and `stage` otherwise.'
field :short_sha, type: GraphQL::Types::String, null: false,
- description: 'Short SHA1 ID of the commit.'
+ description: 'Short SHA1 ID of the commit.'
field :stuck, GraphQL::Types::Boolean, null: false, method: :stuck?,
- description: 'Indicates the job is stuck.'
+ description: 'Indicates the job is stuck.'
field :triggered, GraphQL::Types::Boolean, null: true,
- description: 'Whether the job was triggered.'
+ description: 'Whether the job was triggered.'
def kind
return ::Ci::Build unless [::Ci::Build, ::Ci::Bridge].include?(object.class)
@@ -194,7 +194,7 @@ module Types
end
def manual_variables
- if object.manual? && object.respond_to?(:job_variables)
+ if object.action? && object.respond_to?(:job_variables)
object.job_variables
else
[]