Currently, I am using Azure DevOps Server for managing my projects. Before that I used GitHub.
Github has a release feature form where we can download source code of any previous release. As here Release list preview
So, does anyone know how do I just create a source code zip of the project in azure DevOps which stores on a server and whenever I need it? I can download zip of that version source code like Github.
Anything similar where I can store full source code as zip of that version. so in the future whenever I need the source code of the project I can get it any time.
You would need to associate an Azure pipeline in order to release artifacts and artifact sources
- A release is a collection of artifacts in your DevOps CI/CD processes.
- An artifact is a deployable component of your application.
Azure Pipelines can deploy artifacts that are produced by a wide range of artifact sources, and stored in different types of artifact repositories.
That can include the use of Archive Files task , in order to generate the same kind of " source code (zip)
" seen with GitHub.
Example ( from here , by Mauricio Díaz Orlich ), to be adapted to your case:
- task: ArchiveFiles@2
displayName: 'Compress Files'
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
includeRootFolder: false
archiveType: '7z'
sevenZipCompression: 'maximum'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildNumber).zip'
replaceExistingArchive: true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.