Skip to content

Commit

Permalink
Merge pull request #295 from axonivy/fixVersionUpdate
Browse files Browse the repository at this point in the history
Fix version update: include test.module too
  • Loading branch information
ivy-rew authored Dec 3, 2024
2 parents 44daa48 + 8a4ae39 commit b5502d3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ivy/raise-build-plugin-version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

mvn -f 'pom.test.xml' --batch-mode versions:set-property versions:commit -Dproperty=project.build.plugin.version -DnewVersion=${2} -DallowSnapshots=true
mvn -f 'pom.test.xml' --batch-mode versions:set-property versions:commit -Dproperty=project.build.plugin.version -DnewVersion=${1} -DallowSnapshots=true
11 changes: 9 additions & 2 deletions build/release/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@ pipeline {
withCredentials([string(credentialsId: 'gpg.password.axonivy', variable: 'GPG_PWD'), file(credentialsId: 'gpg.keystore.axonivy', variable: 'GPG_FILE')]) {
sh "gpg --batch --import ${env.GPG_FILE}"
def dryRun = isReleaseBranch() ? '' : '-DdryRun=true'
def args = "-Dmaven.test.skip=true -Dengine.page.url=${params.engineSource} -Dskip.gpg=false -Dgpg.passphrase='${env.GPG_PWD}'";
maven cmd: '--batch-mode ' + dryRun + ' -Darguments="' + args + '" -DpushChanges=false -DlocalCheckout=true release:prepare release:perform'
def reactorArgs = "-Dmaven.test.skip=true " +
"-Dengine.page.url=${params.engineSource} " +
"-Dskip.gpg=false " +
"-Dgpg.passphrase='${env.GPG_PWD}'"
def releaseArgs = "-DpomFileName=pom.test.xml " +
"-DautoVersionSubmodules=true " +
"-DpushChanges=false " +
"-DlocalCheckout=true"
maven cmd: '--batch-mode -f pom.test.xml ' + dryRun + ' -Darguments="' + reactorArgs + '" ' + releaseArgs + ' release:prepare release:perform'
}

withEnv(['GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no']) {
Expand Down
8 changes: 7 additions & 1 deletion pom.test.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.axonivy.ivy.webtest</groupId>
<parent>
<groupId>com.axonivy.ivy.webtest</groupId>
<artifactId>web-config</artifactId>
<version>12.0.2-SNAPSHOT</version>
<relativePath>maven-config</relativePath>
</parent>

<artifactId>web-test-module</artifactId>
<version>12.0.2-SNAPSHOT</version>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion web-tester-fixture/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<version>12.0.2-SNAPSHOT</version>
<packaging>iar-integration-test</packaging>
<properties>
<project.build.plugin.version>12.0.1-SNAPSHOT</project.build.plugin.version>
<project.build.plugin.version>12.0.0</project.build.plugin.version>
<engine.page.url>https://product.ivyteam.io</engine.page.url>
</properties>
<dependencies>
Expand Down

0 comments on commit b5502d3

Please sign in to comment.