Fix path formatting for Bun installation in Jenkinsfile
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit

- Updated the path separator from backslashes to forward slashes for consistency across environments.
- Ensured the PATH variable is correctly set for Bun installation on Windows systems.
This commit is contained in:
Tom Butcher 2026-07-28 22:11:11 +01:00
parent ef4f440db4
commit 4fadd072bd

4
Jenkinsfile vendored
View File

@ -17,10 +17,10 @@ def ensureBunInstalled() {
} else {
bat '''
where bun >nul 2>nul || powershell -c "irm bun.sh/install.ps1 | iex"
set PATH=%USERPROFILE%\.bun\bin;%PATH%
set PATH=%USERPROFILE%/.bun/bin;%PATH%
bun -v
'''
env.PATH = "${env.USERPROFILE}\\.bun\\bin;${env.PATH}"
env.PATH = "${env.USERPROFILE}/.bun/bin;${env.PATH}"
}
}