Skip to content

Commit d258aa3

Browse files
committed
Using SYSTEM_DEFAULTWORKINGDIRECTORY for temporary files.
This will enable the extension to work in both Build and Release.
1 parent cbce9de commit d258aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/VSTSExtensions/OctopusBuildTasks/CreateOctopusRelease/Octopus-CreateRelease.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function Create-ReleaseNotes($linkedItemReleaseNotes) {
136136
}
137137

138138
$fileguid = [guid]::NewGuid()
139-
$fileLocation = Join-Path -Path $env:BUILD_STAGINGDIRECTORY -ChildPath "release-notes-$fileguid.md"
139+
$fileLocation = Join-Path -Path $env:SYSTEM_DEFAULTWORKINGDIRECTORY -ChildPath "release-notes-$fileguid.md"
140140
$notes | Out-File $fileLocation -Encoding utf8
141141

142142
return "--releaseNotesFile=`"$fileLocation`""

0 commit comments

Comments
 (0)