Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
9a383d7429
commit
4720536428
@ -10,10 +10,16 @@ pool:
|
|||||||
vmImage: 'ubuntu-latest'
|
vmImage: 'ubuntu-latest'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - task: NodeTool@0
|
- task: NodeTool@0
|
||||||
# inputs:
|
inputs:
|
||||||
# versionSpec: '12.x'
|
versionSpec: '12.x'
|
||||||
# displayName: 'Install Node.js'
|
displayName: 'Install Node.js'
|
||||||
|
|
||||||
|
- script: |
|
||||||
|
npm install -g @ionic/cli
|
||||||
|
npm install
|
||||||
|
ionic build --prod
|
||||||
|
displayName: 'npm install and build'
|
||||||
|
|
||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
inputs:
|
inputs:
|
||||||
@ -21,25 +27,18 @@ steps:
|
|||||||
echo $(Build.Repository.LocalPath)
|
echo $(Build.Repository.LocalPath)
|
||||||
ls -la $(Build.Repository.LocalPath)
|
ls -la $(Build.Repository.LocalPath)
|
||||||
|
|
||||||
|
# # Archive files
|
||||||
|
- task: ArchiveFiles@2
|
||||||
|
inputs:
|
||||||
|
rootFolderOrFile: '$(Build.Repository.LocalPath)/www'
|
||||||
|
includeRootFolder: true
|
||||||
|
archiveType: 'tar'
|
||||||
|
archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
||||||
|
replaceExistingArchive: true
|
||||||
|
verbose: true
|
||||||
|
|
||||||
# - script: |
|
- task: PublishPipelineArtifact@1
|
||||||
# npm install -g @ionic/cli
|
inputs:
|
||||||
# npm install
|
targetPath: '$(Pipeline.Workspace)'
|
||||||
# ionic build --prod
|
artifact: 'FrontEnd'
|
||||||
# displayName: 'npm install and build'
|
publishLocation: 'pipeline'
|
||||||
|
|
||||||
# # # Archive files
|
|
||||||
# - task: ArchiveFiles@2
|
|
||||||
# inputs:
|
|
||||||
# rootFolderOrFile: '$(Build.BinariesDirectory)'
|
|
||||||
# includeRootFolder: true
|
|
||||||
# archiveType: 'tar'
|
|
||||||
# archiveFile: '$(Build.ArtifactStagingDirectory)/target-www.tar.gz'
|
|
||||||
# replaceExistingArchive: true
|
|
||||||
# verbose: true
|
|
||||||
|
|
||||||
# - task: PublishBuildArtifacts@1
|
|
||||||
# inputs:
|
|
||||||
# PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
|
||||||
# ArtifactName: 'Front'
|
|
||||||
# publishLocation: 'Container'
|
|
Loading…
Reference in New Issue
Block a user