JobTypeCommand OBJECT

A type of job that runs a command on an agent

Fields

agentAgent

The agent that is running the job

agentQueryRulesString

The ruleset used to find an agent to run this job

artifactsArtifactConnection

Artifacts uploaded to this job

Arguments

firstIntrequired

lastIntrequired

automaticArtifactUploadPathsString

A glob of files to automatically upload after the job finishes

buildBuild

The build that this job is a part of

canceledAtDateTime

The time when the job was cancelled

clusterCluster

The cluster of this job

clusterQueueClusterQueue

The cluster queue of this job

commandString

The command the job will run

concurrencyJobConcurrency

Concurrency information related to a job

createdAtDateTime

The time when the job was created

envString

Environment variables for this job

eventsJobEventConnection

Job events

Arguments

firstIntrequired

Returns the first n elements from the list.

afterStringrequired

Returns the elements in the list that come after the specified cursor.

lastIntrequired

Returns the last n elements from the list.

beforeStringrequired

Returns the elements in the list that come before the specified cursor.

exitStatusString

The exit status returned by the command on the agent

expiredAtDateTime

The time when the job was expired

finishedAtDateTime

The time when the job finished

idID

labelString

The label of the job

matrixJSON

The matrix configuration values for this particular job

parallelGroupIndexInt

The index of this job within the parallel job group it is a part of. Null if this job is not part of a parallel job group.

parallelGroupTotalInt

The total number of jobs in the parallel job group this job is a part of. Null if this job is not part of a parallel job group.

passedBoolean

If the job has finished and passed

pipelinePipeline

The pipeline that this job is a part of

priorityJobPriority

The priority of this job

retryRulesJobRetryRules

Job retry rules

runnableAtDateTime

The time when the job became available to be run by an agent

scheduledAtDateTime

The time when the job became scheduled for running

signalString

The termination signal which killed the command, if the command was killed

signalReasonJobEventSignalReason

If the termination signal was sent by the agent, the reason the agent took that action. If this field is null, and the signal field is not null, the command was killed by another process or by the operating system.

softFailedBoolean

If the job soft failed

startedAtDateTime

The time when the job started running

stateJobStates

The state of the job

stepStepCommand

The step that defined this job. Some older jobs in the system may not have an associated step

urlString

The URL for the job

uuidString

The UUID for this job

Interfaces

Node