Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not remove packages folder in ci #3556

Merged
merged 2 commits into from Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions scripts/build.ps1
Expand Up @@ -887,10 +887,14 @@ function Create-NugetPackages {

Copy-Item (Join-Path $env:TP_PACKAGE_PROJ_DIR "Icon.png") $stagingDir -Force

# Remove all locally built nuget packages before we start creating them
# we are leaving them in the folder after uzipping them for easier review.
if (Test-Path $packageOutputDir) {
Remove-Item $packageOutputDir -Recurse -Force -Exclude "manifest","source-build"
# Packages folder should not be cleared on CI.
# Artifacts from source-build are downloaded into this directory before the build starts, and this would remove them.
if (-not $TPB_CIBuild) {
# Remove all locally built nuget packages before we start creating them
# we are leaving them in the folder after uzipping them for easier review.
if (Test-Path $packageOutputDir) {
Remove-Item $packageOutputDir -Recurse -Force
}
}

if (-not (Test-Path $packageOutputDir)) {
Expand Down