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
|
ionic build --prod
|
||||||
displayName: 'npm install and build'
|
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
|
# # Archive files
|
||||||
# # Compress files into .7z, .tar.gz, or .zip
|
- task: ArchiveFiles@2
|
||||||
# - task: ArchiveFiles@2
|
inputs:
|
||||||
# inputs:
|
rootFolderOrFile: '$(Build.BinariesDirectory)'
|
||||||
# rootFolderOrFile: '$(Build.ArtifactStagingDirectory)/www'
|
includeRootFolder: true
|
||||||
# # includeRootFolder: true
|
archiveType: 'tar'
|
||||||
# archiveType: 'tar' # Options: zip, 7z, tar, wim
|
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||||
# tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none
|
replaceExistingArchive: true
|
||||||
# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
verbose: true
|
||||||
# #replaceExistingArchive: true
|
|
||||||
# verbose: true # Optional
|
|
||||||
# #quiet: # Optional
|
|
||||||
|
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
inputs:
|
||||||
|
targetPath: '$(Build.ArtifactStagingDirectory)'
|
||||||
|
artifact: 'target-www.tar.gz'
|
||||||
|
publishLocation: 'pipeline'
|
Loading…
Reference in New Issue
Block a user