Azure-pipelines-tasks: Archive files tasks suddenly failing

Created on 27 Sep 2016  路  11Comments  路  Source: microsoft/azure-pipelines-tasks

My builds suddenly stopped working today. The Archive Files tasks is failing to find any of the files to put into the archive. I saw issue #2646 which is the same issue and is now closed. The build task on my machine was updated to 1.0.5 this morning which caused the builds to fail. It looks like the issue has been fixed in 1.0.6 - how do I get that version (or go back to 1.0.4)?
Sorry for the newbie question - I didn't find any instructions on how to specify a version number for a task.

CrossPlatform

Most helpful comment

My builds are fixed. Thanks

All 11 comments

We are having the same issue. Builds working yesterday are now failing.

We are trying to zip files published with dotnet publish, but the Archive Files Task CWD's into the wrong folder and will not find all the required files:

For example:

dotnet publish outputs the files to src/$(SolutionName)/bin/$(BuildConfiguration)/net451/win7-x64/publish
The Archive Files task CWD's into src/$(SolutionName)/bin/$(BuildConfiguration)/net451/win7-x64 and will not find the files required.

This was working yesterday.

EDIT: I forgot to mention that we have our own build agent (not Hosted) and no changes was made on this since yesterday when things were working.

I'm seeing the same issue with a Hosted agent and it started between 10:48 AM and 4:02 PM CDT yesterday (9/27).

If I check "Prefix root folder name to archive paths" the ArchiveFiles task works, but then my Azure Web Site deploy is deployed under the "publish" folder.

I am also having this issue with the hosted agent. It appears that it is running 7z.exe from the parent directory of the rootFolder instead of the rootFolder. Looks like #2698 was just merged to fix this?

I believe Yang has a fix to patch. Getting confirmation on patch would be great. I believe they are pushing today.

The patch is being pushed out now. Could you please try your build again?

My builds are fixed. Thanks

I can confirm that the Archive Task now works as expected. Thanks!

I confirmed my build is also now working.
Are you making any process changes to stop broken builds being pushed into VSTS? This issue was found and the code change already made well before 1.0.5 was pushed into my environment and broke my build.
My company is considering moving more projects into VSTS and reliability of builds is important. I understand bugs will exist, I just would hope that known bugs that break basic functionality don't get into production.

@janecos First of all sorry about this breakage, I totally agree with you that bugs which break basic functionalities should not get into production. We are actively working on improving both our unit tests coverage as well as E2E testing infrastructures and we hope to catch those show stoppers before they hit production. We also dogfood our tasks in production and have the ability to apply patches quickly. We understand our current limitation and are actively working on updating the release process to reduce those occurrences. Again sorry for the problem this has caused.

In this case the issue was found (and fixed) before it was pushed to production (see #2646). I guess it wasn't identified as a show stopper?

Hi @janecos. Unfortunately, in this case, it was an oversight. We fixed the bug, but missed cherry-picking the commit into the branch from master that had already been created for deployment to production. The fix didn't make it into the deployment branch.

Was this page helpful?
0 / 5 - 0 ratings