Skip to content

Commit dacc341

Browse files
committed
ci: fixes zip path
Signed-off-by: Vincent Biret <[email protected]>
1 parent a6fc6c0 commit dacc341

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ extends:
100100
displayName: Inspect contents of local Maven cache
101101
102102
- pwsh: |
103-
.\scripts\zipPackageContent.ps1 -OutputDirectory $Env:OUTPUT_DIRECTORY -ArtifactId microsoft-graph-core -PackageSegment abstractions -Version $(PACKAGE_VERSION)
103+
.\scripts\zipPackageContent.ps1 -OutputDirectory $Env:OUTPUT_DIRECTORY -ArtifactId microsoft-graph-core -Version $(PACKAGE_VERSION)
104104
echo "list of zips:"
105105
Get-ChildItem -Path $Env:OUTPUT_DIRECTORY -Filter "*.zip" | ForEach-Object { Write-Host $_.FullName }
106106
displayName: Zip contents of local Maven cache

scripts/zipPackageContent.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# Checks that expected files are present & have contents after the publish process to the local cache
22
param(
33
[Parameter(Mandatory=$true)][string] $ArtifactId,
4-
[Parameter(Mandatory=$true)][string] $PackageSegment,
54
[Parameter(Mandatory=$true)][string] $Version,
65
[Parameter(Mandatory=$true)][string] $OutputDirectory,
76
[Parameter()][string] $GroupId = "com.microsoft.graph",
87
[Parameter()][string] $ComponentsSegment = "..\components",
98
[Parameter()][string] $buildOutDir = "build\publishing-repository"
109
)
1110

12-
#components\bundle\build\publishing-repository\com\microsoft\kiota\microsoft-kiota-bundle\1.8.5\
11+
#build\publishing-repository\com\microsoft\kiota\microsoft-kiota-bundle\1.8.5\
1312

1413
$groupIdPath = $GroupId -replace "\.", [System.IO.Path]::DirectorySeparatorChar
15-
$packageFullPath = Join-Path -Path $PSScriptRoot -ChildPath $ComponentsSegment -AdditionalChildPath $PackageSegment, $buildOutDir, $groupIdPath, $ArtifactId, $Version
14+
$packageFullPath = Join-Path -Path $PSScriptRoot -ChildPath $buildOutDir -AdditionalChildPath $groupIdPath, $ArtifactId, $Version
1615

1716
Write-Output "---------------------------------------------------"
1817
Write-Output "Zipping package contents at $packageFullPath"

0 commit comments

Comments
 (0)