diff --git a/build/jenkins/zip b/build/jenkins/zip index dfd8179..3eac561 100644 --- a/build/jenkins/zip +++ b/build/jenkins/zip @@ -159,14 +159,14 @@ pipeline { # Write the determined zip filename to a temporary file Write-Host "Writing zip filename '$zipFilename' to temporary file '$tempFilenameFile'..." - $zipFilename | Out-File -Path $tempFilenameFile -Encoding UTF8 -Force + $zipFilename | Out-File -FilePath $tempFilenameFile -Encoding UTF8 -Force # Corrected: Using -FilePath exit 0 ''' // End powershell script // Read the zip filename from the temporary file def createdZipFilename = "" - // Removed the duplicate declaration of tempFilenameFile here. + // The tempFilenameFile variable is already defined above try { echo "Attempting to read zip filename from temporary file: ${tempFilenameFile}"