Azure pipeline archive fails: ##[error]Error: ENOENT: no such file or directory, stat 'D:\a\1\s\src\AccountManagementServices\publish'

DevBuster007 186 Reputation points
2021-01-29T05:38:05.727+00:00

I am doing a build pipeline for my function app project.
After doing publish, i am doing an archive. But it fails with below error:

[error]Error: ENOENT: no such file or directory, stat 'D:\a\1\s\src\AccountManagementServices\publish'

It says no file exist but in publish i can see files are written in the same directory:

Publish job output:
61682-image.png

Archive Job Output
61668-image.png

Publish job definition:
61683-image.png

Archive job definition:
![61713-image.png][4] [4]: /api/attachments/61713-image.png?platform=QnA

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2021-02-01T04:55:52.947+00:00

    Hi @DevBuster007

    DevOps / TFS is currently not supported in the Q&A forums, the supported products are listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.