1
+ # This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2
+ # This pipeline will be extended to the OneESPT template
3
+ # The Task 'PublishPipelineArtifact@1' has been converted to an output named '' in the templateContext section.
1
4
trigger :
2
5
- master
3
6
- features/*
@@ -8,60 +11,84 @@ variables:
8
11
- name : nodeVersion
9
12
value : ' 16.13.0'
10
13
11
- jobs :
12
- # ################################################
13
- - job : windows
14
- # ################################################
15
- displayName : windows
16
- pool :
17
- vmImage : windows-2022
14
+ resources :
15
+ repositories :
16
+ - repository : 1ESPipelineTemplates
17
+ type : git
18
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
19
+ ref : refs/tags/release
20
+ extends :
21
+ template : v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
22
+ parameters :
23
+ featureFlags :
24
+ autoBaseline : false
25
+ sdl :
26
+ baseline :
27
+ baselineSet : default
28
+ baselineFile : $(Build.SourcesDirectory)/.gdn/.gdnbaselines
29
+ sourceAnalysisPool :
30
+ name : 1ES-ABTT-Shared-Pool
31
+ image : abtt-windows-2022
32
+ os : windows
33
+ customBuildTags :
34
+ - ES365AIMigrationTooling
35
+ stages :
36
+ - stage : stage
37
+ jobs :
38
+ # ################################################
39
+ - job : windows
40
+ # ################################################
41
+ displayName : windows
42
+ pool :
43
+ name : 1ES-ABTT-Shared-Pool
44
+ image : abtt-windows-2022
45
+ os : windows
46
+ steps :
47
+ - template : /azure-pipelines-steps-node.yml@self
48
+ parameters :
49
+ nodeVersion : $(nodeVersion)
50
+ - template : /azure-pipelines-steps-test-build.yml@self
18
51
19
- steps :
20
- - template : azure-pipelines-steps-node.yml
21
- parameters :
22
- nodeVersion : $(nodeVersion)
52
+ # ################################################
53
+ - job : linux
54
+ # ################################################
55
+ displayName : Linux
56
+ pool :
57
+ name : 1ES-ABTT-Shared-Pool
58
+ image : abtt-ubuntu-2204
59
+ os : linux
60
+ templateContext :
61
+ outputs :
62
+ - output : pipelineArtifact
63
+ targetPath : ' node/_build'
64
+ artifactType : ' pipeline'
65
+ artifactName : ' npm-package'
66
+ steps :
67
+ - template : /azure-pipelines-steps-node.yml@self
68
+ parameters :
69
+ nodeVersion : $(nodeVersion)
70
+ - template : /azure-pipelines-steps-test-build.yml@self
71
+ # For CI runs on master, automatically publish packages
72
+ - bash : |
73
+ echo //registry.npmjs.org/:_authToken=\${NPM_TOKEN} > .npmrc
74
+ npm publish || true # Ignore publish failures, usually will happen because package already exists
75
+ displayName: npm publish
76
+ workingDirectory: node/_build
77
+ condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master'))
78
+ env:
79
+ NPM_TOKEN: $(npm-automation.token)
23
80
24
- - template : azure-pipelines-steps-test-build.yml
81
+ # ################################################
82
+ - job : macOS
83
+ # ################################################
84
+ displayName : macOS
85
+ pool :
86
+ name : Azure Pipelines
87
+ image : macOS-latest
88
+ os : macOS
89
+ steps :
90
+ - template : /azure-pipelines-steps-node.yml@self
91
+ parameters :
92
+ nodeVersion : $(nodeVersion)
25
93
26
- # ################################################
27
- - job : linux
28
- # ################################################
29
- displayName : Linux
30
- pool :
31
- vmImage : ubuntu-22.04
32
-
33
- steps :
34
- - template : azure-pipelines-steps-node.yml
35
- parameters :
36
- nodeVersion : $(nodeVersion)
37
- - template : azure-pipelines-steps-test-build.yml
38
-
39
- - task : PublishPipelineArtifact@1
40
- inputs :
41
- targetPath : ' node/_build'
42
- artifactType : ' pipeline'
43
- artifactName : ' npm-package'
44
-
45
- # For CI runs on master, automatically publish packages
46
- - bash : |
47
- echo //registry.npmjs.org/:_authToken=\${NPM_TOKEN} > .npmrc
48
- npm publish || true # Ignore publish failures, usually will happen because package already exists
49
- displayName: npm publish
50
- workingDirectory: node/_build
51
- condition: and(succeeded(), in(variables['build.reason'], 'IndividualCI', 'BatchedCI', 'Manual'), in(variables['build.sourcebranch'], 'refs/heads/master'))
52
- env:
53
- NPM_TOKEN: $(npm-automation.token)
54
-
55
- # ################################################
56
- - job : macOS
57
- # ################################################
58
- displayName : macOS
59
- pool :
60
- vmImage : macOS-12
61
-
62
- steps :
63
- - template : azure-pipelines-steps-node.yml
64
- parameters :
65
- nodeVersion : $(nodeVersion)
66
-
67
- - template : azure-pipelines-steps-test-build.yml
94
+ - template : /azure-pipelines-steps-test-build.yml@self
0 commit comments