How to perform Maven releases with Mercurial

Hi,

we switched our project to Mercurial and BitBucket. I created a build configuration in TeamCity to perform releases with the maven release plugin.

After enabling the option to let the agent download (clone) the sources into a new directory the release and tagging worked quite nice. Especially the speed is great, because all commits are done locally.

The only problem I have, is that the changes aren't pushed back into the repository after the release run. Does anyone have an idea how to configure the plugin or teamcity to push changes back after a successful build?

It would be nice, if TeamCity could clone the repository for the release from the local mercurial repository, which TeamCity already cloned for the other build configurations.

1 comment

Timo,

Can you please explain the expected and actual effect in more detail?

How TeamCity is involved?

Seems, like your build (via Maven release) performs a commit but no push. As TeamCity does not modify the repo itself it seem not related, or does it?

It would be nice, if TeamCity could clone the repository for the release from the local mercurial repository, which TeamCity already cloned for the other build configurations.


Can you please explain this suggestion in a bit more detail? What cloned repository do you refer to? (in case of agent-side checkout there are at least two: on TeamCity server and on agent).

0

Please sign in to leave a comment.