forked from analogdevicesinc/no-OS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_projects.yml
40 lines (37 loc) · 991 Bytes
/
build_projects.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
trigger:
- main
- master
- staging/*
pr:
- main
- master
variables:
- group: noos_releases_group_variables
- name: isMaster
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
jobs:
- job: Projects
pool: LocalPool
steps:
- checkout: self
fetchDepth: 50
submodules: true
clean: true
persistCredentials: true
- script: 'python3 ./tools/scripts/build_projects.py .
-export_dir $(RELEASE_DIR)
-log_dir $(LOG_DIR)
-builds_dir $(BUILDS_DIR)'
displayName: 'Run project build'
- task: PublishPipelineArtifact@1
condition: eq(variables.isMaster, true)
inputs:
targetPath: '$(Build.Repository.LocalPath)/$(RELEASE_DIR)'
artifact: '$(ARTIFACT_NAME)'
publishLocation: 'pipeline'
- task: PublishPipelineArtifact@1
condition: true
inputs:
targetPath: '$(Build.Repository.LocalPath)/$(LOG_DIR)'
artifact: 'logs_$(System.JobId)'
publishLocation: 'pipeline'