Jenkins git plugin and branches

I have work created in Jenkins to create all my function branches (function / **). It works great with the Build Name Setter plugin to identify the various assemblies using the plugin with the name of the Jenkins branch trainer.

My question is that if there are changes in more than one branch at the same time, will he put the same work several times? Or will he just build the first branch (or the last branch) that he finds, and the next branch will be raised during the next poll and so on? Or will he just build the branch that was last modified and ignore all the other branches? I can not understand this, and did not find it documented.

+6
source share
2 answers

Alternatively, you can try a work-based approach. It comes with its own set of problems and depending on the number of branches you deal with, you may need tools to help you manage the process:

+2
source

This has been a known issue with the Jenkins Git plugin for some time. It will only create a master, even when changing certain branches.

The older version works correctly, so you can get around this if you install the version to version 1.1.xxx (1.359 is the latest known working version).

As Jefromi mentioned earlier, you can view the details here: https://issues.jenkins-ci.org/browse/JENKINS-11337 and vote for the question if you want.

+1
source

Source: https://habr.com/ru/post/905240/


All Articles