-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
76 lines (67 loc) · 2.57 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pool:
vmImage: 'Ubuntu 16.04'
steps:
# Node.js Tool Installer
# Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH.
- task: NodeTool@0
inputs:
versionSpec: '8.10'
checkLatest: true
# Bash
# Run a Bash script on macOS, Linux, or Windows
- task: Bash@3
inputs:
targetType: 'inline' # Optional. Options: filePath, inline
#filePath: # Required when targetType == FilePath
#arguments: # Optional
script: 'sudo apt-get update' # Required when targetType == Inline
#workingDirectory: # Optional
#failOnStderr: false # Optional
# Bash
# Run a Bash script on macOS, Linux, or Windows
- task: Bash@3
inputs:
targetType: 'inline' # Optional. Options: filePath, inline
#filePath: # Required when targetType == FilePath
#arguments: # Optional
script: 'sudo apt-get -y install libsecret-1-dev' # Required when targetType == Inline
#workingDirectory: # Optional
#failOnStderr: false # Optional
# npm
# Install npm packages
- task: Npm@1
inputs:
command: 'install' # Options: install, publish, custom
#workingDir: # Optional
#verbose: # Optional
#customCommand: # Required when command == Custom
#customRegistry: 'useNpmrc' # Optional. Options: useNpmrc, useFeed
#customFeed: # Required when customRegistry == UseFeed
#customEndpoint: # Optional
#publishRegistry: 'useExternalRegistry' # Optional. Options: useExternalRegistry, useFeed
#publishFeed: # Required when publishRegistry == UseFeed
#publishEndpoint: # Required when publishRegistry == UseExternalRegistry
# Archive Files
# Archive files using compression formats such as .7z, .rar, .tar.gz, and .zip.
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
#archiveType: 'zip' # Options: zip, 7z, tar, wim
#tarCompression: 'gz' # Optional. Options: gz, bz2, xz, none
#archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
#replaceExistingArchive: true
# Publish Build Artifacts
# Publish build artifacts to Azure Artifacts/TFS or a file share
- task: PublishBuildArtifacts@1
#inputs:
#pathtoPublish: '$(Build.ArtifactStagingDirectory)'
#artifactName: 'drop'
#publishLocation: 'Container' # Options: container, filePath
#targetPath: # Required when publishLocation == FilePath
#parallel: false # Optional
#parallelCount: # Optional