@@ -3,6 +3,14 @@ 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
614jobs :
715- job : Release
816 timeoutInMinutes : 180
@@ -31,10 +39,19 @@ jobs:
3139
3240 - task : DotNetCoreCLI@2
3341 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')
3450 inputs :
3551 command : custom
3652 custom : msbuild
37- arguments : ' build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true"'
53+ arguments : ' build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true;ModifiedModuleBuild=true"'
54+
3855
3956 - task : AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
4057 displayName : ' Manifest Generator '
@@ -359,9 +376,11 @@ jobs:
359376 ./setup/generate.ps1 -repository MSIcreationrepository
360377 Unregister-PSRepository -Name MSIcreationrepository
361378 displayName: 'Build Installer'
379+ condition: eq(${{ parameters.buildInstaller }}, true)
362380
363381 - task : SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@4
364382 displayName : ' Installer Signing [Authenticode]'
383+ condition : eq(${{ parameters.buildInstaller }}, true)
365384 inputs :
366385 ConnectedServiceName : ' ESRP Signing Service'
367386 FolderPath : setup
@@ -404,9 +423,11 @@ jobs:
404423 Get-ChildItem $Env:RepoArtifacts/$folderName
405424 Copy-Item $Env:RepoArtifacts/$Env:Configuration/InstallModule.ps1 -Destination $Env:RepoArtifacts/$folderName
406425 displayName: 'Gather nuget packages and install script'
426+ condition: eq(${{ parameters.buildInstaller }}, true)
407427
408428 - task : ArchiveFiles@2
409429 displayName : ' Pack nuget packages as Az-Cmdlets-latest.tar.gz'
430+ condition : eq(${{ parameters.buildInstaller }}, true)
410431 inputs :
411432 rootFolderOrFile : ' artifacts/$(LocalRepoName)'
412433 includeRootFolder : false
@@ -432,9 +453,11 @@ jobs:
432453 " - "+$sha256.Hash+"`n"
433454 New-Item -Path "setup" -Name "ReleaseNotes.txt" -ItemType File -Force -Value $value
434455 displayName: 'Rename Az-Cmdlets-latest.tar.gz and Calculate SHA256'
456+ condition: eq(${{ parameters.buildInstaller }}, true)
435457
436458 - task : PublishBuildArtifacts@1
437459 displayName : ' Publish Artifact: installer'
460+ condition : eq(${{ parameters.buildInstaller }}, true)
438461 inputs :
439462 PathtoPublish : setup
440463 ArtifactName : setup
@@ -468,4 +491,4 @@ jobs:
468491 Get-ChildItem -Path $Env:RepoArtifacts -Filter Az.*.0.*.*.nupkg | Compress-Archive -DestinationPath "$buildName-preview.zip" -PassThru | Set-AzStorageBlobContent -Container $(ContainerName) -Context $context -Force
469492 azurePowerShellVersion : LatestVersion
470493 pwsh : true
471- condition : and(succeeded(), eq(variables['PushPackageToStorageAccount'], 'true'))
494+ condition : and(succeeded(), eq(variables['PushPackageToStorageAccount'], 'true'), eq(${{ parameters.buildInstaller }}, true) )
0 commit comments