-
Notifications
You must be signed in to change notification settings - Fork 62
Description
I need to add a custom tag to a previously existing job execution.
I am already using datadog-ci to upload jobs to DD, but I want to run analysis on the job traces then POST back to that same Job Event with a custom tag to help sort the jobs within datadog
Right now, I'm trying to see if it's possible to do this with the datadog API directly because the datadog-ci tool won't be available from the context where I need to send the request.
I'm using https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/#search-pipelines-events to get information about the Job, then sending as much info as I can find to POST pipeline event (option 3) https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/#send-pipeline-event
Right now, it's adding the tag correctly but creating a new pipeline execution instead of editing the previous pipeline execution.