Move artifacts publishing to CI job (#113)

* Move artifacts publishing to CI job

* Update .devops/azure-pipelines-pr.yml

Co-Authored-By: Dan Schulte <daschult@microsoft.com>

* Update .devops/azure-pipelines-pr.yml

Co-Authored-By: Dan Schulte <daschult@microsoft.com>

* Add npm install step
This commit is contained in:
Kamil Pajdzik 2019-05-13 10:50:28 -07:00 коммит произвёл GitHub
Родитель 9559246bce
Коммит cc9c3f44aa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 19 добавлений и 13 удалений

Просмотреть файл

@ -46,13 +46,21 @@ jobs:
codeCoverageTool: Cobertura codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml' summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage/cobertura-coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/' reportDirectory: '$(System.DefaultWorkingDirectory)/coverage/'
- job: Build - job: Pack
pool: pool:
vmImage: 'Ubuntu 16.04' vmImage: 'Ubuntu 16.04'
steps: steps:
- task: Npm@1 - task: Npm@1
displayName: 'npm build' displayName: 'npm pack'
inputs: inputs:
command: custom command: custom
verbose: false verbose: false
customCommand: build customCommand: pack
- task: CopyFiles@2
displayName: 'Copy Files to: drop'
inputs:
Contents: '*.tgz'
TargetFolder: drop
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.SourcesDirectory)/drop

Просмотреть файл

@ -1,5 +1,5 @@
trigger: trigger:
- master - '*'
jobs: jobs:
- job: Check_Everything - job: Check_Everything
@ -57,16 +57,14 @@ jobs:
vmImage: 'Ubuntu 16.04' vmImage: 'Ubuntu 16.04'
steps: steps:
- task: Npm@1 - task: Npm@1
displayName: 'npm pack' displayName: 'npm install'
inputs: inputs:
command: custom command: custom
verbose: false verbose: false
customCommand: pack customCommand: install
- task: CopyFiles@2 - task: Npm@1
displayName: 'Copy Files to: drop' displayName: 'npm run build'
inputs: inputs:
Contents: '*.tgz' command: custom
TargetFolder: drop verbose: true
- task: PublishBuildArtifacts@1 customCommand: run build
inputs:
pathtoPublish: $(Build.SourcesDirectory)/drop