Git flow: How to configure a one-click release process in Jenkins?

前端 未结 4 1151
栀梦
栀梦 2021-02-01 09:21

We are using the standard git flow branching model (develop, master, release-, hotfix-, etc).

As part of our workflow, we would like to set up a \"one-click\" r

4条回答
  •  失恋的感觉
    2021-02-01 09:49

    We ended up with starting the release via CLI on the client (because in Jenkins there is a bug starting the release).

    git flow release start -DautoVersionSubmodules=true
    

    If you want to use the batch mode you need to specify developmentVersion and releaseVersion.

    Created a new job in Jenkins to build the release branch and use the M2 Release Plugin to release it finally:

    -B jgitflow:release-finish
    

    If you use some custom profiles, you have to pass them additional via arguments caused by a bug.

    -Darguments=-Pprofile
    

提交回复
热议问题