Update azure-pipelines.yml for Azure Pipelines
Added first step at archiving
This commit is contained in:
parent
e046468bb2
commit
f9b55c7f42
@ -22,26 +22,18 @@ steps:
|
||||
ionic build --prod
|
||||
displayName: 'npm install and build'
|
||||
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: |
|
||||
pwd
|
||||
echo $(Build.BinariesDirectory)
|
||||
ls -la $(Build.BinariesDirectory)
|
||||
echo $(Build.ArtifactStagingDirectory)
|
||||
ls -la$(Build.ArtifactStagingDirectory)
|
||||
ls -R ~
|
||||
|
||||
# # Archive files
|
||||
# # Compress files into .7z, .tar.gz, or .zip
|
||||
# - task: ArchiveFiles@2
|
||||
# inputs:
|
||||
# rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www'
|
||||
# # includeRootFolder: true
|
||||
# archiveType: 'tar' # Options: zip, 7z, tar, wim
|
||||
# tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none
|
||||
# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||
# #replaceExistingArchive: true
|
||||
# verbose: true # Optional
|
||||
# #quiet: # Optional
|
||||
- task: ArchiveFiles@2
|
||||
inputs:
|
||||
rootFolderOrFile: '$(Build.BinariesDirectory)'
|
||||
includeRootFolder: true
|
||||
archiveType: 'tar'
|
||||
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||
replaceExistingArchive: true
|
||||
verbose: true
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
inputs:
|
||||
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||
artifact: 'target-www.tar.gz'
|
||||
publishLocation: 'pipeline'
|
Loading…
Reference in New Issue
Block a user