Skip to content

Commit

Permalink
Merge pull request #9 from axonivy-market/feature/TW-1577-Server-Migr…
Browse files Browse the repository at this point in the history
…ation-and-Move-of-Stiegl-Engine

TW-1577 Server Migration and  Move of Stiegl Engine > Updated build
  • Loading branch information
phhung-axonivy authored Nov 16, 2023
2 parents f4dd9a2 + f5adfd0 commit 9b4dada
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -42,4 +42,8 @@ pipeline {
}
}
}
}

def getJenkinsMasterDomain() {
return env.BUILD_URL.split('/')[2].split(':')[0]
}

0 comments on commit 9b4dada

Please sign in to comment.