Add environment field to Jobs in Job and Pipeline Hooks
Release notes
- Added
environment
field toJob Event
andPipeline Event
webhooks when a deployment is defined for that job.
Problem to solve
As a user integrating another service through webhooks, I want to know which environment has been deployed from a CI job.
Intended users
DevOps Engineer and Software Developer
User experience goal
The user should be able to receive the deployed environment just be subscribing to Job Hooks
or Pipeline Hooks
Proposal
Adding a new field to Job Hook
data, when there is a deployment defined for it.
Further details
An alpha customer from our integration at Datadog has requested this, because they want to be able to filter custom dashboards that triggered deployment, and they have this data on GitLab CI.
Permissions and Security
Just the usual permissions to configure webhooks in a project or globally.
Documentation
TODO
Availability & Testing
- Unit test changes
- Integration test changes
Available Tier
Free
What does success look like, and how can we measure that?
What is the type of buyer?
Is this a cross-stage feature?
Links / references
https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#job-events