Data related to a specific deployment in a specific environment that the deployment is present in.* Must specify one of issueKeys or associations.

interface GetDeploymentByKey {
    associations: any[];
    commands?: {
        command?: string;
    }[];
    deploymentSequenceNumber: number;
    description: string;
    displayName: string;
    duration?: number;
    environment: {
        displayName: string;
        id: string;
        type: string;
    };
    label?: string;
    lastUpdated: string;
    pipeline: {
        displayName: string;
        id: string;
        url: string;
    };
    schemaVersion?: string;
    state: string;
    updateSequenceNumber: number;
    url: string;
}

Properties

associations: any[]

The entities to associate the Deployment information with. It must contain at least one of IssueIdOrKeysAssociation or ServiceIdOrKeysAssociation.

commands?: {
    command?: string;
}[]

A list of commands to be actioned for this Deployment

Type declaration

  • Optional command?: string

    The command name.

deploymentSequenceNumber: number

This is the identifier for the deployment. It must be unique for the specified pipeline and environment. It must be a monotonically increasing number, as this is used to sequence the deployments.

description: string

A short description of the deployment

displayName: string

The human-readable name for the deployment. Will be shown in the UI.

duration?: number

The duration of the deployment (in seconds).

environment: {
    displayName: string;
    id: string;
    type: string;
}

The environment that the deployment is present in.

Type declaration

  • displayName: string

    The name of the environment to present to the user.

  • id: string

    The identifier of this environment, must be unique for the provider so that it can be shared across pipelines.

  • type: string

    The type of the environment.

label?: string

An (optional) additional label that may be displayed with deployment information. Can be used to display version information etc. for the deployment.

lastUpdated: string

The last-updated timestamp to present to the user as a summary of the state of the deployment.

pipeline: {
    displayName: string;
    id: string;
    url: string;
}

This object models the Continuous Delivery (CD) Pipeline concept, an automated process (usually comprised of multiple stages)

For getting software from version control right through to the production environment.

Type declaration

  • displayName: string

    The name of the pipeline to present to the user.

  • id: string

    The identifier of this pipeline, must be unique for the provider.

  • url: string

    A URL users can use to link to this deployment pipeline.

schemaVersion?: string

The DeploymentData schema version used for this deployment data.

Placeholder to support potential schema changes in the future.

state: string

The state of the deployment

updateSequenceNumber: number

A number used to apply an order to the updates to the deployment, as identified by the deploymentSequenceNumber, in the case of out-of-order receipt of update requests. It must be a monotonically increasing number. For example, epoch time could be one way to generate the updateSequenceNumber.

url: string

A URL users can use to link to this deployment, in this environment.