File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,18 @@ param (
10
10
$WorkingDirectory = $env: SYSTEM_DEFAULTWORKINGDIRECTORY
11
11
)
12
12
13
+ # region Handle Working Directory Defaults
14
+ if (-not $WorkingDirectory )
15
+ {
16
+ if ($env: RELEASE_PRIMARYARTIFACTSOURCEALIAS )
17
+ {
18
+ $WorkingDirectory = Join-Path - Path $env: SYSTEM_DEFAULTWORKINGDIRECTORY - ChildPath $env: RELEASE_PRIMARYARTIFACTSOURCEALIAS
19
+ }
20
+ else { $WorkingDirectory = $env: SYSTEM_DEFAULTWORKINGDIRECTORY }
21
+ }
22
+ if (-not $WorkingDirectory ) { $WorkingDirectory = Split-Path $PSScriptRoot }
23
+ # endregion Handle Working Directory Defaults
24
+
13
25
# Prepare publish folder
14
26
Write-PSFMessage - Level Important - Message " Creating and populating publishing directory"
15
27
$publishDir = New-Item - Path $WorkingDirectory - Name publish - ItemType Directory
You can’t perform that action at this time.
0 commit comments