After upgrade for version 4.0.0 of dependencie azure-pipelines-task, Archive2 does not work anymore
See original GitHub issueYesterday after the commit for upgrade, it started to not work anymore, right after this https://github.com/microsoft/azure-pipelines-tasks/commit/e526642ad239018a1227109d12d93a182405a6fc :
Error logs
Found 0 files
/usr/bin/zip -r /home/vsts/work/1/a/6256.zip
zip error: Nothing to do! (/home/vsts/work/1/a/6256.zip)
##[error]Error: Archive creation failed for archive file: /home/vsts/work/1/a/6256.zip
code: 12
stdout:
zip error: Nothing to do! (/home/vsts/work/1/a/6256.zip)
stderr:
error: undefined;
##[error]Archive creation failed for archive file: /home/vsts/work/1/a/6256.zip
code: 12
stdout:
zip error: Nothing to do! (/home/vsts/work/1/a/6256.zip)
stderr:
error: undefined;
My yml
- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:21
Top Results From Across the Web
Azure devops pipeline not using updated version of custom ...
I'm trying to use a custom task that I uploaded to the Visual Studio Marketplace. Below in this picture I made, you can...
Read more >Pipeline caching - Azure - Microsoft Learn
When a cache step is encountered during a run, the task will restore the cache based on the provided inputs. If no cache...
Read more >Application Security Verification Standard 4.0
V7: Error Handling and Logging Verification Requirements . ... Welcome to the Application Security Verification Standard (ASVS) version 4.0. The ASVS is a ......
Read more >Upgrading Guide - Keycloak
It is important that you upgrade Keycloak server first, and then upgrade the adapters. Earlier versions of the adapter might work with later ......
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug:1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance ... script for is not working" status:RESOLVED resolution:OBSOLETE severity:major ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve same issue…
Logs:
Task implementation:
This was the answer for us; works perfectly. Our task after changes:
This was after a day working on custom zip/Compress-Archive solutions and running into the symlinking issues described above in our NextJS app.
EDIT: To add, thank you @mattford for this solution. I wasn’t aware until this that you could refer to tasks by minor version.