Skip to content

Commit

Permalink
IVYPORTAL-14419 Raise version of your portal maven artifacts to the n…
Browse files Browse the repository at this point in the history
…ext development cycle after release > Increase portal version by build param
  • Loading branch information
lttung-axonivy committed Dec 27, 2024
1 parent 443e932 commit 4aeaa99
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions build/update-pom/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,11 @@ def updateVersion() {
maven cmd: "-f ${pomFile} versions:set-property versions:commit -Dproperty=build.plugin.version -DnewVersion=${params.buildPluginVersion}"
}
}
echo '============${params.portalVersion?.trim()} outside'

if (!params.portalVersion?.trim().isEmpty()) {
echo '============ inside'
sh '''#!/bin/bash
update_xml() {
# Start Python scripts - need correct indentation
python3 - <<EOF
python3 - <<EOF # Start Python scripts - need correct indentation
import xml.etree.ElementTree as ET
from pathlib import Path
import sys
Expand Down Expand Up @@ -111,7 +108,6 @@ try:
for dependency in dependencies.findall("dependency"):
group_id = dependency.find("groupId")
if group_id is not None and group_id.text in [
"ch.ivyteam.ivy.project.portal",
"com.axonivy.portal",
]:
version_tag = dependency.find("version")
Expand All @@ -120,10 +116,7 @@ try:
# Write changes back to the file
tree.write(file_path, encoding="utf-8", xml_declaration=True)
except Exception as e:
print(f"Failed to process {file_path}: {e}", file=sys.stderr)
EOF
# End Python scripts - need correct indentation
EOF # End Python scripts - need correct indentation
}
file_patterns=(
Expand Down

0 comments on commit 4aeaa99

Please sign in to comment.