We want to have cleanup tasks that will analyze and report data, and annotate the build. But since this step can take some time, we’d like to put it off to a separate pipeline (trigger from CI). Is it possible for this triggered pipeline to annotate the original build?
Hi @ngan! Interesting use case. Yes, you can use --job=...
to indicate which job the annotation should be considered created by, and so which build it should be displayed on, so you could probably pass the triggering job id ($BUILDKITE_JOB_ID
) through in an environment variable or some meta-data and then use it when creating your annotation in the triggered build.
Sweet, thanks! Yeah, our deployment is blocked by the build finishing. So the faster we can make it green the better.