-
Notifications
You must be signed in to change notification settings - Fork 1
/
.azure-pipelines.ci.yml
41 lines (32 loc) · 1.12 KB
/
.azure-pipelines.ci.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
resources:
- repo: self
clean: true
trigger:
- develop
name: StormCrossLocalization-CI-$(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.r)
pool:
vmImage: windows-latest
steps:
- task: CmdLine@1
displayName: Cake build
inputs:
filename: bash
arguments: 'build.sh --target deploy-pack --args-beta=$(Build.BuildId)'
workingFolder: cake
condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/develop'))
- task: CmdLine@1
displayName: Cake build
inputs:
filename: bash
arguments: 'build.sh --target deploy-pack'
workingFolder: cake
condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/master'))
- task: CopyFiles@2
displayName: "Copy Files to: $(build.artifactstagingdirectory)"
inputs:
SourceFolder: artifacts
TargetFolder: '$(build.artifactstagingdirectory)'
condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/develop'))
- task: PublishBuildArtifacts@1
displayName: "Publish Artifact: drop"
condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/master', 'refs/heads/develop'))