Skip to content

ci: make version update idempotent#2482

Merged
triceo merged 1 commit into
mainfrom
ci/update-version-idempotent
Jul 10, 2026
Merged

ci: make version update idempotent#2482
triceo merged 1 commit into
mainfrom
ci/update-version-idempotent

Conversation

@rsynek

@rsynek rsynek commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rsynek rsynek requested a review from triceo as a code owner July 10, 2026 09:40
Copilot AI review requested due to automatic review settings July 10, 2026 09:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the CI “version update” step idempotent by removing the Maven versions:set invocation and directly rewriting the <revision> property in the two POMs that define it.

Changes:

  • Remove ./mvnw versions:set ... from the version-change script.
  • Update the root pom.xml and service/facade/service-parent/pom.xml <revision> values via sed.

Comment on lines 6 to 8
echo " New version: $NEW_VERSION"
./mvnw versions:set -Dfull -Dproperty=revision -DnewVersion="$NEW_VERSION" -Drevision="$NEW_VERSION" -DgenerateBackupPoms=false
# replaces the parent revision which is not updated by the previous command
sed -i "0,/<\/revision>/s/<revision>.*<\/revision>/<revision>$NEW_VERSION<\/revision>/" pom.xml
sed -i "0,/<\/revision>/s/<revision>.*<\/revision>/<revision>$NEW_VERSION<\/revision>/" service/facade/service-parent/pom.xml
@triceo triceo merged commit f5dbc7b into main Jul 10, 2026
23 of 24 checks passed
@triceo triceo deleted the ci/update-version-idempotent branch July 10, 2026 09:44
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants