Update azure-pipelines.yml for Azure Pipelines

Added first step at archiving
This commit is contained in:
Thomas 2020-02-08 05:32:22 +00:00
parent e046468bb2
commit f9b55c7f42

View File

@ -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'