From f5adfd0ca451171f3b00d5916ebd8f274ed74e75 Mon Sep 17 00:00:00 2001 From: lttung-axonivy Date: Thu, 16 Nov 2023 16:06:10 +0700 Subject: [PATCH] TW-1577 Server Migration and Move of Stiegl Engine > Updated build --- build/ci/Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/ci/Jenkinsfile b/build/ci/Jenkinsfile index 0787e1f..fcb4ee7 100644 --- a/build/ci/Jenkinsfile +++ b/build/ci/Jenkinsfile @@ -32,7 +32,7 @@ pipeline { steps { script { def buildPluginVersion = readMavenPom(file: 'axonivy-express/pom.xml').getProperties().getProperty("build.plugin.version") - def engineUrl = 'http://10.123.1.216:8000' + def engineUrl = 'http://' + getJenkinsMasterDomain() + ':8000' docker.build('deploy-modules-to-engine', '-f build/Dockerfile .').inside('-v /var/tools/maven-cache:/home/build/') { for (module in builtModules) { maven cmd: "com.axonivy.ivy.ci:project-build-plugin:${buildPluginVersion}:deploy-to-engine -f ${module}/pom.xml -Divy.deploy.server.id=engine-cockpit -Divy.deploy.engine.app=Portal -Divy.deploy.method=HTTP -Divy.deploy.engine.url=${engineUrl} -Divy.test.engine=MODIFY_EXISTING -Divy.deploy.test.users=true" @@ -42,4 +42,8 @@ pipeline { } } } +} + +def getJenkinsMasterDomain() { + return env.BUILD_URL.split('/')[2].split(':')[0] } \ No newline at end of file