update in build file1
SAP-ERP Portal CI/CD / build (push) Successful in 4m32s

This commit is contained in:
John
2026-09-23 19:23:19 +05:30
parent 69b4e68baf
commit 27140c21f0
+5 -1
View File
@@ -77,6 +77,7 @@ jobs:
Stop-Process -Id $_.ProcessId -Force Stop-Process -Id $_.ProcessId -Force
Write-Host "Stopped node PID $($_.ProcessId)" Write-Host "Stopped node PID $($_.ProcessId)"
} }
$global:LASTEXITCODE = 0
- name: Deploy to production folder - name: Deploy to production folder
shell: powershell shell: powershell
@@ -90,7 +91,9 @@ jobs:
# Copy the fresh build over the live folder, but never touch # Copy the fresh build over the live folder, but never touch
# .env, uploads\ or logs\ - those belong to the running instance. # .env, uploads\ or logs\ - those belong to the running instance.
robocopy dist\ $deployPath /E /XD "$deployPath\uploads" "$deployPath\logs" /XF ".env" /NFL /NDL /NJH /NJS robocopy dist\ $deployPath /E /XD "$deployPath\uploads" "$deployPath\logs" /XF ".env" /NFL /NDL /NJH /NJS
if ($LASTEXITCODE -ge 8) { throw "robocopy failed with exit code $LASTEXITCODE" } $rc = $LASTEXITCODE
if ($rc -ge 8) { throw "robocopy failed with exit code $rc" }
$global:LASTEXITCODE = 0
Write-Host "Deployment completed successfully." Write-Host "Deployment completed successfully."
@@ -108,4 +111,5 @@ jobs:
Start-Process -FilePath "D:\apps\sap-erp\deploy\start-server.bat" -WorkingDirectory "D:\apps\sap-erp\deploy" Start-Process -FilePath "D:\apps\sap-erp\deploy\start-server.bat" -WorkingDirectory "D:\apps\sap-erp\deploy"
} }
$global:LASTEXITCODE = 0
Write-Host "Portal restart triggered." Write-Host "Portal restart triggered."