Skip to content

Commit

Permalink
Merge pull request #1296 from axonivy-market/feature/IVYPORTAL-18067-…
Browse files Browse the repository at this point in the history
…Create-Portal-branch-release-12.0

IVYPORTAL-18067 Create Portal branch release/12.0
  • Loading branch information
mnhnam-axonivy authored Dec 20, 2024
2 parents e80ce5c + b204bf8 commit 59beeff
Show file tree
Hide file tree
Showing 29 changed files with 53 additions and 57 deletions.
2 changes: 1 addition & 1 deletion AxonIvyPortal/PortalApp/.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
</projectDescription>
6 changes: 3 additions & 3 deletions AxonIvyPortal/PortalApp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-app</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<distributionManagement>
<repository>
Expand All @@ -27,13 +27,13 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/PortalKitTestHelper/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portalKitTestHelper</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<ivy.engine.version>12.0.2</ivy.engine.version>
Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion AxonIvyPortal/portal-components/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<distributionManagement>
<repository>
Expand Down
2 changes: 1 addition & 1 deletion AxonIvyPortal/portal-migration/.project
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
</projectDescription>
2 changes: 1 addition & 1 deletion AxonIvyPortal/portal-product/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-product</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<distributionManagement>
<repository>
Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/portal-selenium-test/customized_pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-selenium-test</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<build.plugin.version>12.0.0</build.plugin.version>
Expand All @@ -14,7 +14,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-document-screenshots-selenide</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<build.plugin.version>12.0.0</build.plugin.version>
Expand All @@ -24,7 +24,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/portal-selenium-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-selenium-test</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<ivy.engine.version>12.0.2</ivy.engine.version>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions AxonIvyPortal/portal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<distributionManagement>
<repository>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/maven/.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
</projectDescription>
2 changes: 1 addition & 1 deletion Documentation/maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<version>${revision}</version>

<properties>
<revision>9.1.0.0-SNAPSHOT</revision>
<revision>12.0.2-SNAPSHOT</revision>
</properties>

<distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/portal-guide/.project
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
</matcher>
</filter>
</filteredResources>
</projectDescription>
</projectDescription>
2 changes: 1 addition & 1 deletion Documentation/public-api/.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
<comment></comment>
<projects>
</projects>
</projectDescription>
</projectDescription>
2 changes: 1 addition & 1 deletion Documentation/public-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>public-api</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<properties>
<build.plugin.version>12.0.0</build.plugin.version>
<ivy.engine.version>12.0.0</ivy.engine.version>
Expand Down
4 changes: 2 additions & 2 deletions Showcase/InternalSupport/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>internalSupport</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<properties>
<build.plugin.version>12.0.0</build.plugin.version>
Expand All @@ -22,7 +22,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-developer-examples</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions Showcase/portal-components-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components-examples</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<distributionManagement>
<repository>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion Showcase/portal-demo-app/.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
</projectDescription>
6 changes: 3 additions & 3 deletions Showcase/portal-demo-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-demo-app</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
<distributionManagement>
<repository>
Expand All @@ -27,13 +27,13 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-user-examples</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions Showcase/portal-developer-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-developer-examples</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<distributionManagement>
<repository>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions Showcase/portal-user-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-user-examples</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<packaging>iar</packaging>
<distributionManagement>
<repository>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.axonivy.portal</groupId>
<artifactId>portal-components</artifactId>
<version>9.1.0.0-SNAPSHOT</version>
<version>12.0.2-SNAPSHOT</version>
<type>iar</type>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion build/ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pipeline {
script {
def buildPluginVersion = readMavenPom(file: 'AxonIvyPortal/portal-components/pom.xml').getProperties().getProperty("build.plugin.version")
def utils = load 'build/common/utils.groovy'
def engineUrl = 'http://' + utils.getJenkinsMasterDomain() + ':8000'
def engineUrl = 'http://' + utils.getJenkinsMasterDomain() + ':8012'
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 Down
2 changes: 1 addition & 1 deletion build/create-release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipeline {
parameters {
string(name: 'releaseVersion', defaultValue: '1.0.0-m1', description: 'The release version.')
string(name: 'engineDownloadURL', defaultValue: '-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12.0/axonivy-engine-windows.zip', description: '''Where to download engine? e.g.
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly/axonivy-engine-windows.zip for nightly master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12/axonivy-engine-windows.zip for nightly 12
-Divy.engine.download.url=https://developer.axonivy.com/permalink/dev/axonivy-engine-windows.zip for dev master
-Divy.engine.download.url=file:///C:/wawa/engine/AxonIvyEngineX.X.X.X_Windows_x64.zip for downloaded engine
-Divy.engine.list.url=https://jenkins.ivyteam.io/job/core_product/job/release%252F9.4/lastSuccessfulBuild/artifact/workspace/ch.ivyteam.ivy.server.product/target/products/ -Divy.engine.os.arch=Windows_x64 for last successful build 9.4
Expand Down
9 changes: 4 additions & 5 deletions build/document-screenshot-selenide/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ pipeline {
parameters {
string(name: 'testPatternToRun', defaultValue: 'com.axonivy.portal.selenium.document.screenshot.*Test', description: 'Test pattern to run')
string(name: 'engineDownloadURL', defaultValue: '-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12.0/axonivy-engine-windows.zip', description: '''Where to download engine? e.g.
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly/axonivy-engine-windows.zip for nightly master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/dev/axonivy-engine-windows.zip for dev master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12/axonivy-engine-windows.zip for nightly 12
-Divy.engine.download.url=file:///C:/wawa/engine/AxonIvyEngineX.X.X.X_Windows_x64.zip for downloaded engine
-Divy.engine.list.url=https://jenkins.ivyteam.io/job/core_product/job/release%252F9.4/lastSuccessfulBuild/artifact/workspace/ch.ivyteam.ivy.server.product/target/products/ -Divy.engine.os.arch=Windows_x64 for last successful build 9.4
''')
Expand Down Expand Up @@ -90,9 +89,9 @@ pipeline {
bat "mvn clean install -f AxonIvyPortal/portal-selenium-test/document_screenshot_pom.xml %engineDownloadURL% -Dtest=${params.testPatternToRun} -DbrowserType=FIREFOX -DtrimStackTrace=false -Divy.engine.directory=%engineDir% -Divy.deploy.timeout.seconds=60 -Divy.engine.start.timeout.seconds=500"
utils.cleanDisk()

echo '====================Copy ElasticSearch log===================='
echo '====================Copy OpenSearch log===================='
powershell '''
$LOG= $env:engineDir + "/elasticsearch/logs/ivy-elasticsearch-*.log"
$LOG= $env:engineDir + "/logs/opensearch/ivy-opensearch-*.log"
Copy-Item $LOG -Destination AxonIvyPortal/portal-selenium-test/target
'''
if (params.useForDocumentation) {
Expand All @@ -109,7 +108,7 @@ pipeline {
post {
always {
archiveArtifacts artifacts: 'AxonIvyPortal/portal-selenium-test/target/*.zip', allowEmptyArchive: true
archiveArtifacts artifacts: 'AxonIvyPortal/portal-selenium-test/target/selenide/reports/**/*.*, AxonIvyPortal/portal-selenium-test/target/testEngineOut.log, AxonIvyPortal/portal-selenium-test/target/ivy-elasticsearch-*.log', allowEmptyArchive: true
archiveArtifacts artifacts: 'AxonIvyPortal/portal-selenium-test/target/selenide/reports/**/*.*, AxonIvyPortal/portal-selenium-test/target/testEngineOut.log, AxonIvyPortal/portal-selenium-test/target/ivy-opensearch-*.log', allowEmptyArchive: true
junit allowEmptyResults: true, testResults: '**/surefire-reports/TEST-*.xml'
}
}
Expand Down
3 changes: 1 addition & 2 deletions build/gui-test-new-dashboard/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ pipeline {
parameters {
string(name: 'testPatternToRun', defaultValue: 'com.axonivy.portal.selenium.test.**.*Test', description: 'Test pattern to run')
string(name: 'engineDownloadURL', defaultValue: '-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12.0/axonivy-engine-windows.zip', description: '''Where to download engine? e.g.
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly/axonivy-engine-windows.zip for nightly master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/dev/axonivy-engine-windows.zip for dev master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12/axonivy-engine-windows.zip for nightly 12
-Divy.engine.download.url=file:///C:/wawa/engine/AxonIvyEngineX.X.X.X_Windows_x64.zip for downloaded engine
-Divy.engine.list.url=https://jenkins.ivyteam.io/job/core_product/job/release%252F9.4/lastSuccessfulBuild/artifact/workspace/ch.ivyteam.ivy.server.product/target/products/ -Divy.engine.os.arch=Windows_x64 for last successful build 9.4
''')
Expand Down
3 changes: 1 addition & 2 deletions build/integration/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ pipeline {
parameters {
string(name: 'testPatternToRun', defaultValue: 'com.axonivy.portal.selenium.test.**.*Test', description: 'Test pattern to run')
string(name: 'engineDownloadURL', defaultValue: '-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12.0/axonivy-engine-windows.zip', description: '''Where to download engine? e.g.
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly/axonivy-engine-windows.zip for nightly master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/dev/axonivy-engine-windows.zip for dev master
-Divy.engine.download.url=https://developer.axonivy.com/permalink/nightly-12/axonivy-engine-windows.zip for nightly 12
-Divy.engine.download.url=file:///C:/wawa/engine/AxonIvyEngineX.X.X.X_Windows_x64.zip for downloaded engine
-Divy.engine.list.url=https://jenkins.ivyteam.io/job/core_product/job/release%252F9.4/lastSuccessfulBuild/artifact/workspace/ch.ivyteam.ivy.server.product/target/products/ -Divy.engine.os.arch=Windows_x64 for last successful build 9.4
''')
Expand Down
6 changes: 3 additions & 3 deletions build/performance-test/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
}

environment {
engineVersion = 'master'
engineVersion = '12'
jmeterSourceDir = 'AxonIvyPortal/portal-selenium-test/jmeter'
ivyDir = '/var/tools/ivy'
}
Expand All @@ -20,7 +20,7 @@ pipeline {
steps {
script {
currentBuild.description = "On ${env.NODE_NAME}"
engineNames = ['master', '10', '8', 'performance-master', 'performance-10', 'performance-8']
engineNames = ['master', '12', '10', '8', 'performance-master', 'performance-12', 'performance-10', 'performance-8']
for (engineName in engineNames) {
sh "docker compose -f ${ivyDir}/${engineName}/docker-compose.yml down"
}
Expand All @@ -34,7 +34,7 @@ pipeline {
def modules = ['AxonIvyPortal/portal-components', 'AxonIvyPortal/portal']
def buildPluginVersion = readMavenPom(file: 'AxonIvyPortal/portal-components/pom.xml').getProperties().getProperty('build.plugin.version')
def utils = load 'build/common/utils.groovy'
def engineUrl = 'http://' + utils.getJenkinsMasterDomain() + ':9000'
def engineUrl = 'http://' + utils.getJenkinsMasterDomain() + ':9012'
for (module in modules) {
maven cmd: "clean install -f ${module}/pom.xml"
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"
Expand Down
Loading

0 comments on commit 59beeff

Please sign in to comment.