title: How to specify build variables from a particular artifact?
body: <p>I am trying to use <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&amp;tabs=yaml" rel="nofollow noreferrer">Predefined Build Variables</a> in my <code>Release Pipeline</code> with CI Trigger enabled. My release pipeline has multiple Artifacts coming in from Multiple separate <code>Build Pipelines</code>.</p>
  <p>When I use the variable <code>$(Build.BuildNumber)</code>, it targets the variable to a specific artifact all the time. I would really like it to use the one from the Build Pipeline that is triggering the deployment. But if that is not possible, can I at least specify which Artifact-set it should use the Build variables from?</p>