0

Added agent less job to our release pipeline but it fails , Please advice

error: 2020-02-11T19:31:58.7824352Z ##[error]Build with ID 321656 not found for build pipeline ID 241

failure

  • The error says the specified build 321656 was not found. Please check if the Build with ID 321656 exists for build pipeline id 241. And could you share a screenshot of the settings for the down artifact task? – Levi Lu-MSFT Feb 12 '20 at 06:44
  • You can try checking "allow scripts to access OAth token" option of the agent job and run your pipeline again. please check out [this thread](https://stackoverflow.com/questions/48221922/download-build-artifacts-in-vsts-not-able-to-get-latest-build-of-a-specific-buil) – Levi Lu-MSFT Feb 14 '20 at 09:52
  • it worked without "allowing scripts to acess OATH token" – sudheer kumar Feb 18 '20 at 19:30

1 Answers1

0

When troubleshooting with @sudheer kumar, we found the build with ID 321656 can be retrieved via rest api and it is indeed exist for build pipeline 241.

We checked the option allowing scripts to acess OATH token for the agent job settings, and it turned out unchecking option allowing scripts to acess OATH token fixed above issue.

enter image description here

Levi Lu-MSFT
  • 27,483
  • 2
  • 31
  • 43