You can no longer publish Connect apps on the Atlassian Marketplace. All new extensibility features will be delivered only on Forge.
Refer to this blog post for our timeline to end Connect support.
Have an existing Connect app? You can incrementally migrate it to Forge.
This module allows third-party providers to receive callbacks for deployments they've submitted for deployment gating.
jiraDeploymentGating
1 2"modules": { "jiraDeploymentGating": { "key": "my-deployment-gating", "name": { "value": "My deployment gating" }, "callback": { "type": "jwt", "url": "/callback" } } }
key
string (^[a-zA-Z0-9-]+$)name
callback.type
stringjwt. See Callback for more information.callback.url
URLbaseUrl. See Callback for more information.A callback will be triggered when the status of a gated deployment is updated. Callbacks will only be received for deployments submitted by this app.
When the callback is triggered, the callback resource specified by the app will receive a POST request. The JSON payload of the request will contain the following fields:
updatedTimestamp
gatingStatus
awaiting, allowed, prevented, or invalid. See Gating status for more information.details
type, such as issue, and additional fields are based on that type.
For example, the issue type has an issueLink for a full HTTPS URL to the Jira issue gating the deployment, and an issueKey with the issue key.pipelineId
environmentId
deploymentSequenceNumber
Note that these fields are the same as those returned when querying the Get deployment gating status by key API.
Deployment gating callbacks use the same retry mechanism and policy as Jira platform webhooks.
There are currently four possible gating statuses that can be received in the callback payload. The meaning of each status is:
awaiting
allowed
prevented
invalid
An example of the payload received in the callback is:
1 2{ "updatedTimestamp": "2020-08-25T06:04:50.239+00:00", "gatingStatus": "awaiting", "details": [ { "type": "issue", "issueKey": "ITSM-1", "issueLink": "https://YOUR_SUBDOMAIN.atlassian.net/servicedesk/customer/portal/1/ITDSM-1" } ], "pipelineId": "e9c906a7-451f-4fa6-ae1a-c389e2e2d87c", "environmentId": "8ec94d72-a4fc-4ac0-b31d-c5a595f373ba", "deploymentSequenceNumber": 100 }
Rate this page: