Skip to content

Add deployment_id to deployment payloads (#332819)

What does this MR do?

Implements #332819 (closed):

Include the deployment_id in the webhook payload for deployements.

This will allow users to identify the deployment directly, without going through the deployable object.

I have added necessary assertion to the related spec example to ensure that added deployment_id is deployment.id.

How to setup and validate locally

  1. Run a verbose http server, like netcat or Python's http.server:
    > nc -l -p 8080
    # or
    > python -m http.server 8080
  2. Create a webhook with http://localhost:8080 URL and Deployment events trigger.
  3. Trigger webhook by testing it.
  4. Look at the output of the server to see deployment_id.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #332819 (closed)

Merge request reports