Skip to content

Commit

Permalink
Fix folder depth issue in the artifact cleanup step in jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdeckard committed Apr 26, 2021
1 parent f89af93 commit 640ff70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pipeline {
Write-Output "Removing old artifacts..."
$NewArtifacts = Get-ChildItem -Path ./FOR_RELEASE/GameData/UmbraSpaceIndustries -Attributes Directory -Name
$NewArtifacts.ForEach({
$ArtifactPath = Join-Path -Path $CachePath -ChildPath $_
$ArtifactPath = Join-Path -Path (Join-Path -Path $CachePath -ChildPath "UmbraSpaceIndustries") -ChildPath $_
if (Test-Path -Path $ArtifactPath) {
Remove-Item -Path $ArtifactPath -Recurse -Force
}
Expand Down

0 comments on commit 640ff70

Please sign in to comment.