@@ -9,29 +9,24 @@ parameters:
99jobs :
1010- job : AssembleArtifact${{ parameters.displayName }}
1111 displayName : " Assemble ${{ parameters.arch }}"
12+
1213 templateContext :
1314 ${{ if eq(parameters.isNightlyBuild, false) }} :
1415 inputs :
1516 - input : pipelineArtifact
1617 pipeline : core-tools-host
17- artifactName : func-host-linux-signed
18- targetPath : $(Pipeline.Workspace)/core-tools-host/func-host-linux-signed
19- - input : pipelineArtifact
20- pipeline : core-tools-host
21- artifactName : func-host-windows-signed
22- targetPath : $(Pipeline.Workspace)/core-tools-host/func-host-windows-signed
23- - input : pipelineArtifact
24- pipeline : core-tools-inproc
25- artifactName : func-cli-inproc6
26- targetPath : $(Pipeline.Workspace)/core-tools-inproc/func-cli-inproc6
18+ artifactName : func-cli-host
19+ targetPath : $(Pipeline.Workspace)/func-cli-host/
20+
2721 - input : pipelineArtifact
2822 pipeline : core-tools-inproc
29- artifactName : func-cli-inproc8
30- targetPath : $(Pipeline.Workspace)/core-tools-inproc/func-cli-inproc8
23+ artifactName : func-cli-inproc
24+ targetPath : $(Pipeline.Workspace)/func-cli-inproc/
25+
3126 - input : pipelineArtifact
3227 pipeline : core-tools-default
3328 artifactName : func-cli
34- targetPath : $(Pipeline.Workspace)/core-tools -default/func-cli
29+ targetPath : $(Pipeline.Workspace)/func-cli -default/func-cli
3530
3631 outputParentDirectory : $(Build.ArtifactStagingDirectory)
3732 outputs :
@@ -48,54 +43,34 @@ jobs:
4843 steps :
4944 - checkout : self
5045
51- # Conditional download of artifacts based on isNightlyBuild parameter
46+ # Conditional download of artifacts based on isNightlyBuild parameter from ADO feed
5247 - ${{ if eq(parameters.isNightlyBuild, true) }} :
53- # Download from ADO feed for nightly builds
54- - task : DownloadPackage@1
55- displayName : ' Download core-tools-host (Linux signed) from feed'
56- inputs :
57- packageType : ' upack'
58- feed : ' internal/core-tools-nightly-build'
59- definition : ' func-host-linux-signed'
60- version : ' *'
61- downloadPath : ' $(Pipeline.Workspace)/core-tools-host/func-host-linux-signed'
62-
63- - task : DownloadPackage@1
64- displayName : ' Download core-tools-host (Windows) from feed'
65- inputs :
66- packageType : ' upack'
67- feed : ' internal/core-tools-nightly-build'
68- definition : ' func-host-windows-signed'
69- version : ' *'
70- downloadPath : ' $(Pipeline.Workspace)/core-tools-host/func-host-windows-signed'
71-
7248 - task : DownloadPackage@1
73- displayName : ' Download core-tools-inproc6 from feed'
49+ displayName : ' Download func-cli-host from feed'
7450 inputs :
7551 packageType : ' upack'
7652 feed : ' internal/core-tools-nightly-build'
77- definition : ' func-cli-inproc6 '
53+ definition : ' func-cli-host '
7854 version : ' *'
79- downloadPath : ' $(Pipeline.Workspace)/core-tools-inproc/ func-cli-inproc6 '
55+ downloadPath : ' $(Pipeline.Workspace)/func-cli-host '
8056
8157 - task : DownloadPackage@1
82- displayName : ' Download core-tools-inproc8 from feed'
58+ displayName : ' Download func-cli-inproc from feed'
8359 inputs :
8460 packageType : ' upack'
8561 feed : ' internal/core-tools-nightly-build'
86- definition : ' func-cli-inproc8 '
62+ definition : ' func-cli-inproc '
8763 version : ' *'
88- downloadPath : ' $(Pipeline.Workspace)/core-tools-inproc/ func-cli-inproc8 '
64+ downloadPath : ' $(Pipeline.Workspace)/func-cli-inproc '
8965
9066 - task : DownloadPackage@1
91- displayName : ' Download core-tools-default from feed'
67+ displayName : ' Download func-cli from feed'
9268 inputs :
9369 packageType : ' upack'
9470 feed : ' internal/core-tools-nightly-build'
9571 definition : ' func-cli'
9672 version : ' *'
97- downloadPath : ' $(Pipeline.Workspace)/core-tools-default/func-cli'
98-
73+ downloadPath : ' $(Pipeline.Workspace)/func-cli-default/func-cli'
9974
10075 - task : DotNetCoreCLI@2
10176 displayName : " Run ArtifactAssembler"
@@ -104,29 +79,31 @@ jobs:
10479 projects : " $(Build.SourcesDirectory)/src/Cli/ArtifactAssembler/Azure.Functions.Cli.ArtifactAssembler.csproj"
10580 arguments : ' -c release -- "Azure.Functions.Cli.${{ parameters.arch }}"'
10681 workingDirectory : ' $(Pipeline.Workspace)'
107-
108- - ${{ if eq(parameters.arch, 'min.win-x64') }} : # what about the other min.* architectures?
109- - task : PowerShell@2
110- displayName : ' Generate metadata.json file'
111- inputs :
112- targetType : filePath
113- filePath : ' $(Build.SourcesDirectory)/eng/scripts/artifact-assembler/generate-metadata-file.ps1'
114- arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging"'
115- workingDirectory : ' $(Pipeline.Workspace)'
82+ env :
83+ # Directory names containing the artifacts
84+ OUT_OF_PROC_ARTIFACT_ALIAS : ' func-cli-default'
85+ IN_PROC_ARTIFACT_ALIAS : ' func-cli-inproc'
86+ CORETOOLS_HOST_ARTIFACT_ALIAS : ' func-cli-host'
87+ # Subdirectory names for the artifacts
88+ OUT_OF_PROC_ARTIFACT_NAME : ' func-cli'
89+ IN_PROC6_ARTIFACT_NAME : ' inproc6'
90+ IN_PROC8_ARTIFACT_NAME : ' inproc8'
91+ CORETOOLS_HOST_WINDOWS_ARTIFACT_NAME : ' windows'
92+ CORETOOLS_HOST_LINUX_ARTIFACT_NAME : ' linux'
11693
11794 - ${{ if startsWith(parameters.arch, 'win-x') }} :
11895 - task : PowerShell@2
11996 displayName : ' Generate MSI files'
12097 inputs :
12198 targetType : filePath
12299 filePath : ' $(Build.SourcesDirectory)/eng/scripts/generate-msi-files.ps1'
123- arguments : ' -ArtifactsPath "$(Pipeline.Workspace)/staging/coretools -cli"'
100+ arguments : ' -ArtifactsPath "$(Pipeline.Workspace)/staging/func -cli"'
124101 workingDirectory : ' $(Build.SourcesDirectory)/build'
125102
126103 - template : ci/sign-files.yml@eng
127104 parameters :
128105 displayName : Sign MSI files
129- folderPath : $(Pipeline.Workspace)/staging/coretools -cli
106+ folderPath : $(Pipeline.Workspace)/staging/func -cli
130107 pattern : ' *.msi'
131108 signType : ' inline'
132109 inlineOperation : |
@@ -159,25 +136,15 @@ jobs:
159136 inputs :
160137 targetType : filePath
161138 filePath : ' $(Build.SourcesDirectory)/eng/scripts/artifact-assembler/test-vs-artifacts.ps1'
162- arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging/coretools -visualstudio"'
139+ arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging/func-cli -visualstudio"'
163140
164141 - ${{ if startsWith(parameters.arch, 'win') }} :
165142 - task : PowerShell@2
166143 displayName : ' Test Artifacts'
167144 inputs :
168145 targetType : filePath
169146 filePath : ' $(Build.SourcesDirectory)/eng/scripts/artifact-assembler/test-artifacts.ps1'
170- arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging/coretools-cli"'
171- env :
172- DirectoryToLogTo : $(Build.SourcesDirectory)/TestLogs
173-
174- - task : 1ES.PublishPipelineArtifact@1
175- condition : succeededOrFailed()
176- continueOnError : true
177- inputs :
178- targetPath : ' $(Build.SourcesDirectory)/TestLogs'
179- artifactName : ' TestLogs_$(System.JobId)_$(System.JobAttempt)'
180- artifactType : ' pipeline'
147+ arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging/func-cli"'
181148
182149 - task : DotNetCoreCLI@2
183150 displayName : ' Zip Artifacts'
@@ -198,10 +165,18 @@ jobs:
198165 displayName : ' Copy Files to Artifact Staging Directory'
199166 inputs :
200167 SourceFolder : ' $(Pipeline.Workspace)/staging'
201- Contents : ' coretools -*/**'
168+ Contents : ' func-cli -*/**'
202169 TargetFolder : ' $(Build.ArtifactStagingDirectory)/core-tools'
203170
204171 - ${{ if eq(parameters.arch, 'min.win-x64') }} :
172+ - task : PowerShell@2
173+ displayName : ' Generate metadata.json file'
174+ inputs :
175+ targetType : filePath
176+ filePath : ' $(Build.SourcesDirectory)/eng/scripts/artifact-assembler/generate-metadata-file.ps1'
177+ arguments : ' -StagingDirectory "$(Pipeline.Workspace)/staging"'
178+ workingDirectory : ' $(Pipeline.Workspace)'
179+
205180 - task : CopyFiles@2
206181 displayName : ' Copy metadata.json to Artifact Staging Directory'
207182 inputs :
0 commit comments