私は、ブランチを構築してマスターにマージンを設定しました。私はまた、あなたがユーザー "hudson"でない限り、開発者がマスターにチェックインするのを防ぐためのスクリプトを受け取っています。hudson/jenkinsは良いものの代わりにgitの悪いブランチを構築し続ける
私たちのリポジトリではうまくいっていますが、誰かが新しいリモートブランチをプッシュすると、hudsonは一時停止したunworkingブランチを作成してビルドに失敗し、リモートブランチがすぐにビルドを開始する(受け取り後のスクリプトはcurlを呼び出す)が、開発者がプッシュしたものの代わりにその悪いブランチを構築しようとします。
注意ログには、dhiller-1が最新のものであることが正しく検出されたようですが、dhiller-refactorをビルドすることに決めました。これは完全ではなくリモートリポジトリに保存されています。進捗(およびバックアップの目的のためにのみプッシュ)
ログ...
Started by user anonymous
Checkout:workspace/C:\AAROOT\Jenkins2\jobs\toolbar\workspace - [email protected]
Using strategy: Default
Last Built Revision: Revision 597af7a5d808b28f492257f311af9171f03e6891 (origin/dhiller-1)
Checkout:workspace/C:\AAROOT\Jenkins2\jobs\toolbar\workspace - [email protected]
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh://[email protected]/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