I’ve a failed job with the following errors when merging a pull request with DEV branch.
zip warning: could not open for reading: .git/gc.pid
zip warning: could not open for reading: .git/gc.log.lock
The build is successful when I push the repo to the azure devops.
This is the task for my pipeline:
- task: ArchiveFiles@2
displayName: 'Archive Files'
inputs:
rootFolderOrFile: '$(buildRootDirectory)'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
Don't see any of those files .git/gc.pid and .git/gc.log.lock in my codebase.