Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jgitflow plugin not creating git tags

I have the following jgitflow plugin and use Jenkins to perform automated releases. Using the command mvn --batch-mode jgitflow:release-start jgitflow:release-finish. Everything is working however, I never see any tags in github. As per the docs unless notags is used all my releases should create tags. Any idea what is going wrong?

<plugin>
    <groupId>external.atlassian.jgitflow</groupId>
    <artifactId>jgitflow-maven-plugin</artifactId>
    <version>1.0-m4.3</version>
    <configuration>
        <flowInitContext>
            <masterBranchName>release</masterBranchName>
            <developBranchName>master</developBranchName>
            <releaseBranchPrefix>release-</releaseBranchPrefix>
            <versionTagPrefix>release-</versionTagPrefix>
        </flowInitContext>
        <noReleaseMerge>true</noReleaseMerge>
    </configuration>
</plugin>

Using release-start and finish separately did not help either. See below:

mvn --batch-mode  jgitflow:release-start -Dmaven.javadoc.skip=true -DskipTests
git push --tags
Everything up-to-date
like image 500
Usman Ismail Avatar asked Oct 06 '15 18:10

Usman Ismail


2 Answers

Found out eventually that the versionTagPrefix cannot be the same as the releaseBranchPrefix otherwise the tagging silently fails.

like image 149
Usman Ismail Avatar answered Nov 15 '22 10:11

Usman Ismail


All changes are made local. You need to push them to remote:

  • develop
  • Tag (git push --tag)
  • master
like image 44
Jorge Peres Avatar answered Nov 15 '22 08:11

Jorge Peres