Jenkins Git plugin detached HEAD

后端 未结 9 2076
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 09:55

I am new to Git and also to Jenkins. My problem is that I can\'t get the Jenkins Maven release plugin to work.

When I build a common Maven build with Jenkins, it wor

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 10:29

    I want to build several branches, and check out each branch under its name. I am using GIT plugin 2.4.0.

    The answer by Matthias Braun gets you a named branch, but it is not named after the remote branch.

    Instead of setting the local branch master, set the local branch $GIT_BRANCH.

    I found that solution in https://issues.jenkins-ci.org/browse/JENKINS-6856

提交回复
热议问题