2012-01-10 11 views
6

私は、ブランチを構築してマスターにマージンを設定しました。私はまた、あなたがユーザー "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 

答えて

3

まあ、私は最終的にのみ完全にそのリモートブランチを削除し、その悪い支店からのコードを持っていた、新しいものを作成することによって、それを修正ファイルのコピーを使用しているので、そのブランチの履歴は失われましたが、問題を修正しました。もう一度働いてください。

0

私は同じ問題がありました。奇妙なことは、私は「マージビルドの前に」オプションのセットをチェックしていなかった間、ジェンキンス(のgit - プラグインが)、

ERROR: Branch not suitable for integration as it does not merge cleanly

メッセージを発せられるということでした。 git-plugins hereのソースコードを見ると、それはそのオプションと関係がありました。このオプションを有効にして、設定を保存し、オプションを無効にして設定をもう一度保存すると、問題が解決しました。これ以上マージしようとしません。

関連する問題