Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.1
-
None
-
None
-
None
Description
as it tries to clone the remote repo, which has not yet been pushed - so there's no tag in the remote repo yet.
Ideally if pushChanges is false, it should use a value of
<scm>
<developerConnectionL>scm:git:file://${baseDir}</developerConnection>
...
</scm>
so that it clones from the current local git repo (which has everything inside it) rather than the remote repo which has yet to be pushed.
BTW a great use case for not pushing is using a staging maven repo like Nexus; which may reject an attempt to promote a staged build, so you only want to push after a downstream stage works.