I have two pipelines in Azure Devops. One generates an artifact and the other one runs tests on it. The pipeline that generates the artifact gets triggered whenever a PR is created. The pipeline that runs the tests is only triggered if certain checks are true.
I am trying to programmatically associate the artifact ID from the first pipeline with the second one but don't seem to find a way to do this. the SDK offers BuildHttpClientBase.CreateArtifactAsync()
method but you must already have a build ID to do so. I am not sure how to get the ID, since queuing a build with BuildHttpClient.QueueBuildAsync()
will fail without this artifact set first.