title: Azure DevOps fails to download artifacts from its own repository
body: <p>I'm attempting to publish a project from Azure DevOps to an on-site server.  The project is buildingi fine - and published fine after I set the pipeline to look for the artifacts in the right place.</p>
  
  <p>However, and seemingly in response to nothing, I started getting the following error when the pipeline attempts to download the artifacts
  Failed in getBuildAPI with error: Error: unable to get local issuer certificate
  Error: unable to get local issuer certificate</p>
  
  <p><a href="https://i.stack.imgur.com/TJ9fb.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TJ9fb.png" alt="enter image description here"></a></p>
  
  <p>From the looks of this it seems that Azure Pipelines can't read it's own artifacts, which seems a little ridiculous.  </p>
  
  <p>Usually the root cause of problems like this are deceptive error messages, but I can't for the life of me figure out what could be happening.</p>
  
  <p>What could be causing this problem?</p>
  
  <p><strong>Update</strong> - the pipeline works approx one out of every ten times I try it, but never two times in a row.</p>