I have jenkins to create any branch and merge it into master. I also have pre-acquisition scripts so that none of the developers can check the wizard if you are not a "hudson" user.
It works great in one of our repositories, but on the other hand, when someone pushes a new remote branch, hudson builds a suspended non-working branch and doesnโt build, so every new push of the remote branch starts immediate assembly (post-receive script calls curl) but then he tries to build this bad branch instead of the one that the developer clicked.
NOTICE in the logs, it looks like it correctly determines that dhiller-1 was the last clicked, but then decides to build a dhiller-refactor, which is not complete but is stored in the remote repository, as it is a large refactor that is still in the process (and clicked only for backup)
magazines ...
Started by user anonymous Checkout:workspace / C:\AAROOT\Jenkins2\jobs\toolbar\workspace - hudson.remoting.LocalChannel@aab87f Using strategy: Default Last Built Revision: Revision 597af7a5d808b28f492257f311af9171f03e6891 (origin/dhiller-1) Checkout:workspace / C:\AAROOT\Jenkins2\jobs\toolbar\workspace - hudson.remoting.LocalChannel@aab87f Fetching changes from 1 remote Git repository Fetching upstream changes from ssh:// hudson@192.168.111.130 /opt/toolbar Seen branch in repository origin/HEAD Seen branch in repository origin/dhiller-1 Seen branch in repository origin/dhiller-2 Seen branch in repository origin/dhiller-refactor Seen branch in repository origin/dhiller-test Seen branch in repository origin/master Commencing build of Revision 2c56d8645871ea2929c717e15038a5b79c0b43e1 (origin/dhiller-refactor) Merging Revision 2c56d8645871ea2929c717e15038a5b79c0b43e1 (origin/dhiller-refactor) onto master ERROR: Branch not suitable for integration as it does not merge cleanly Build did not succeed and the project is configured to only push after a successful build, so no pushing will occur. Finished: FAILURE
source share