Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4dd9264

Browse files
authored
Fix/pipeline (#330)
* Update pipeline
1 parent 0fadf13 commit 4dd9264

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.azure-pipelines/release-cli.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,12 @@ stages:
486486
script: |
487487
. $(powershellScriptsDir)/BuildTools.ps1
488488
489-
$downloadDir = '$(ARTIFACTS_PATH)'
490-
$extractPath = Join-Path -Path '$(WORKING_DIR)' -ChildPath artifacts
491-
Expand-EsrpArtifacts -SourceDir $downloadDir -OutputDir $extractPath -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)' -PackageType $(packageType) -TarCompression $(compressionProgram) -Cleanup
489+
$destDir = '$(ARTIFACTS_PATH)-src'
490+
$sourceDir = '$(ARTIFACTS_PATH)'
491+
Expand-EsrpArtifacts -SourceDir $sourceDir -OutputDir $destDir -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)' -PackageType $(packageType) -TarCompression $(compressionProgram) -Cleanup
492+
Move-Item -Path $destDir -Destination $sourceDir
492493
493-
Move-NonExecutableItems -SourcePath $extractPath -ExecutableItemNames mgc,mgc.exe
494-
Write-Host "##vso[task.setvariable variable=ARTIFACTS_PATH]$extractPath"
494+
Move-NonExecutableItems -SourcePath $sourceDir -ExecutableItemNames mgc,mgc.exe
495495
verbosePreference: '$(OUTPUT_PREFERENCE)'
496496
debugPreference: '$(OUTPUT_PREFERENCE)'
497497
informationPreference: '$(OUTPUT_PREFERENCE)'
@@ -500,7 +500,7 @@ stages:
500500

501501
- template: templates/prepare-unsigned-executable-darwin.yaml
502502
parameters:
503-
executablePath: $(ARTIFACTS_PATH)
503+
executablePath: $(SIGN_PATH)
504504
executableName: mgc
505505
zipName: $(ZIP_NAME)
506506
targetRuntime: $(rid)
@@ -550,7 +550,7 @@ stages:
550550
condition: and(succeeded(), ne('${{ parameters.simulate }}', 'true'), gt(length(variables['NOTARIZE_OPERATION']), 0), ne(variables['NOTARIZE_OPERATION'], '$(inlineNotarizeOperation)'), and(eq(variables['SHOULD_SIGN'], 'True'), eq(variables['SHOULD_NOTARIZE'], 'True')))
551551

552552
- pwsh: |
553-
dotnet pack ./src/msgraph-cli.csproj --configuration $(buildConfiguration) --output $(ARTIFACTS_PATH) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg -v d
553+
dotnet pack ./src/msgraph-cli.csproj --configuration $(buildConfiguration) --output $(SIGN_PATH) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg -v d
554554
workingDirectory: $(Build.SourcesDirectory)
555555
displayName: DotNet pack (nuget)
556556
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'True'), ne('${{ parameters.simulate }}', 'true'), eq(variables['Is_NUGET'], 'true'))
@@ -560,7 +560,7 @@ stages:
560560
inputs:
561561
# Pipeline validation can't expand service name from matrix variables
562562
ConnectedServiceName: "microsoftgraph ESRP CodeSign DLL and NuGet (AKV)"
563-
FolderPath: $(ARTIFACTS_PATH)
563+
FolderPath: $(SIGN_PATH)
564564
signConfigType: inlineSignParams
565565
UseMinimatch: true
566566
Pattern: "*.nupkg"
@@ -569,7 +569,7 @@ stages:
569569
condition: and(succeeded(), ne('${{ parameters.simulate }}', 'true'), eq(variables['SHOULD_SIGN'], 'True'), eq(variables['IS_NUGET'], 'true'))
570570

571571
- pwsh: |
572-
$artifactsPath = '$(ARTIFACTS_PATH)'
572+
$artifactsPath = '$(SIGN_PATH)'
573573
Write-Host "##vso[task.setvariable variable=WORKING_DIR]$artifactsPath"
574574
condition: and(succeeded(), eq(variables['SHOULD_SIGN'], 'True'), eq(variables['IS_NUGET'], 'true'))
575575
@@ -583,15 +583,15 @@ stages:
583583
. $(powershellScriptsDir)/BuildTools.ps1
584584
585585
if ($IsMacOS) {
586-
$zipPath = Join-Path -Path '$(ARTIFACTS_PATH)' -ChildPath '$(ZIP_NAME)'
586+
$zipPath = Join-Path -Path '$(SIGN_PATH)' -ChildPath '$(ZIP_NAME)'
587587
Write-Verbose "Expanding $zipPath"
588588
$output = Split-Path -Path $zipPath -Parent
589589
$output = Join-Path $output "out"
590590
$output = New-Item $output -ItemType Directory -Force
591591
Expand-Archive -Path "$zipPath" -DestinationPath "$output"
592592
Remove-Item $zipPath
593593
}
594-
echo "Success" > $(ARTIFACTS_PATH)/Sign-Summary.md
594+
echo "Success" > $(SIGN_PATH)/Sign-Summary.md
595595
if ($IsMacOS) {
596596
Write-Verbose "Compressing updated source"
597597
Compress-Archive -Path "$output/*" -DestinationPath $zipPath -Force
@@ -610,7 +610,7 @@ stages:
610610
script: |
611611
. $(powershellScriptsDir)/BuildTools.ps1
612612
$fileName = Get-FileName -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)'
613-
Compress-SignedFiles -SourceDir '$(ARTIFACTS_PATH)' -ReportDir '$(WORKING_DIR)' -OutputDir '$(WORKING_DIR)' -OutputFileName $fileName -PackageType zip -Cleanup
613+
Compress-SignedFiles -SourceDir '$(SIGN_PATH)' -ReportDir '$(WORKING_DIR)' -OutputDir '$(WORKING_DIR)' -OutputFileName $fileName -PackageType zip -Cleanup
614614
verbosePreference: '$(OUTPUT_PREFERENCE)'
615615
debugPreference: '$(OUTPUT_PREFERENCE)'
616616
informationPreference: '$(OUTPUT_PREFERENCE)'
@@ -623,7 +623,7 @@ stages:
623623
targetType: inline
624624
script: |
625625
. $(powershellScriptsDir)/BuildTools.ps1
626-
$zipPath = Join-Path -Path '$(ARTIFACTS_PATH)' -ChildPath '$(ZIP_NAME)'
626+
$zipPath = Join-Path -Path '$(SIGN_PATH)' -ChildPath '$(ZIP_NAME)'
627627
$fileName = Get-FileName -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)'
628628
Update-SignedArchive -InputFile $zipPath -ReportDir '$(WORKING_DIR)' -OutputDir '$(WORKING_DIR)' -OutputFileName "$fileName" -ExeNames mgc -Cleanup
629629
verbosePreference: '$(OUTPUT_PREFERENCE)'

0 commit comments

Comments
 (0)