Refactor Jenkinsfile to redefine releaseBaseUrl variable
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit

- Moved the definition of releaseBaseUrl into the runBuild function for improved scope management and clarity in the build process.
This commit is contained in:
Tom Butcher 2026-08-01 21:15:12 +01:00
parent 8741a2c6fd
commit 7bbe717823

5
Jenkinsfile vendored
View File

@ -36,10 +36,9 @@ def writeBuildMetadata() {
}
}
def releaseBaseUrl =
"https://dist.farmcontrol.app/jenkins/farmcontrol/farmcontrol-server"
def runBuild(buildCommand) {
def releaseBaseUrl =
"https://dist.farmcontrol.app/jenkins/farmcontrol/farmcontrol-server"
withEnv([
"VITE_BUILD_NUMBER=${env.BUILD_NUMBER ?: 'dev'}",
'NODE_ENV=production',