@@ -3,14 +3,6 @@ parameters:
33 displayName : Branch for OOB pipeline
44 type : string
55 default : ' none'
6- - name : TargetModule
7- displayName : Build Module List(Split by ':')
8- type : string
9- default : ' none'
10- - name : BuildInstaller
11- displayName : Build Installer
12- type : boolean
13- default : true
146jobs :
157- job : Release
168 timeoutInMinutes : 180
@@ -39,19 +31,10 @@ jobs:
3931
4032 - task : DotNetCoreCLI@2
4133 displayName : Build
42- condition : ne('${{ parameters.TargetModule }}', 'none')
43- inputs :
44- command : custom
45- custom : msbuild
46- arguments : ' build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true;TargetModule=${{ parameters.TargetModule }}"'
47- - task : DotNetCoreCLI@2
48- displayName : Build
49- condition : eq('${{ parameters.TargetModule }}', 'none')
5034 inputs :
5135 command : custom
5236 custom : msbuild
53- arguments : ' build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true;ModifiedModuleBuild=true"'
54-
37+ arguments : ' build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true"'
5538
5639 - task : AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
5740 displayName : ' Manifest Generator '
@@ -376,11 +359,9 @@ jobs:
376359 ./setup/generate.ps1 -repository MSIcreationrepository
377360 Unregister-PSRepository -Name MSIcreationrepository
378361 displayName: 'Build Installer'
379- condition: eq(${{ parameters.buildInstaller }}, true)
380362
381363 - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@4
382364 displayName : ' Installer Signing [Authenticode]'
383- condition : eq(${{ parameters.buildInstaller }}, true)
384365 inputs :
385366 ConnectedServiceName : ' ESRP Signing Service'
386367 FolderPath : setup
@@ -423,11 +404,9 @@ jobs:
423404 Get-ChildItem $Env:RepoArtifacts/$folderName
424405 Copy-Item $Env:RepoArtifacts/$Env:Configuration/InstallModule.ps1 -Destination $Env:RepoArtifacts/$folderName
425406 displayName: 'Gather nuget packages and install script'
426- condition: eq(${{ parameters.buildInstaller }}, true)
427407
428408 - task : ArchiveFiles@2
429409 displayName : ' Pack nuget packages as Az-Cmdlets-latest.tar.gz'
430- condition : eq(${{ parameters.buildInstaller }}, true)
431410 inputs :
432411 rootFolderOrFile : ' artifacts/$(LocalRepoName)'
433412 includeRootFolder : false
@@ -453,11 +432,9 @@ jobs:
453432 " - "+$sha256.Hash+"`n"
454433 New-Item -Path "setup" -Name "ReleaseNotes.txt" -ItemType File -Force -Value $value
455434 displayName: 'Rename Az-Cmdlets-latest.tar.gz and Calculate SHA256'
456- condition: eq(${{ parameters.buildInstaller }}, true)
457435
458436 - task : PublishBuildArtifacts@1
459437 displayName : ' Publish Artifact: installer'
460- condition : eq(${{ parameters.buildInstaller }}, true)
461438 inputs :
462439 PathtoPublish : setup
463440 ArtifactName : setup
@@ -491,4 +468,4 @@ jobs:
491468 Get-ChildItem -Path $Env:RepoArtifacts -Filter Az.*.0.*.*.nupkg | Compress-Archive -DestinationPath "$buildName-preview.zip" -PassThru | Set-AzStorageBlobContent -Container $(ContainerName) -Context $context -Force
492469 azurePowerShellVersion : LatestVersion
493470 pwsh : true
494- condition : and(succeeded(), eq(variables['PushPackageToStorageAccount'], 'true'), eq(${{ parameters.buildInstaller }}, true) )
471+ condition : and(succeeded(), eq(variables['PushPackageToStorageAccount'], 'true'))
0 commit comments