Refactor Jenkinsfile to redefine releaseBaseUrl variable
Some checks failed
farmcontrol/farmcontrol-server/pipeline/head There was a failure building this commit
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:
parent
8741a2c6fd
commit
7bbe717823
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user