-
I'm looking to configure GitVersion so that builds generate the same version if the code has not changed. I have been unable to get it working. Mainline almost works except we also use it with Dev and that branch seems to be way off on the verson number. ContinuousDelivery almost works but it does not keep the version from feature or dev. Something like the following: Our workflow is odd as we need to release to dev from dev, and then merge into main when ready to send through the pipeline to all of the other test environments. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Only use Otherwise, your current workflow seems to be an almost good fit with GitVersion defaults and the Git Flow model. |
Beta Was this translation helpful? Give feedback.
If you don't increment when
dev
is merged intomain
, you'll generate duplicate version numbers for different commits. I'm not sure why you would want that, but I think you can achieve what you want if you setincrement: None
for yourdevelop
branch.