我想將我的Bitbucket存儲庫鏡像到CodeCommit並從中進行構建,而不影響開發人員的工作流程。遷移很簡單,現在的目標是將CodeCommit與Bitbucket同步,理想情況下,通過推送到Bitbucket觸發,但基於時間的同步也是可以接受的。AWS Lambda for CodeCommit回購同步
我發現這個職位:https://aws.amazon.com/blogs/devops/replicating-and-automating-sync-ups-for-a-repository-with-aws-codecommit/這裏Mirror a Git Repo directly to AWS CodeCommit
懸而未決的問題請您分享想法如何編寫AWS lambda函數同步CodeCommit存儲庫到位桶。
謝謝你的所有意見。我想分享我找到並實施的解決方案。 –
https://marketplace.atlassian.com/plugins/com.englishtown.stash-hook-mirror/server/overview這個插件允許任何兼容git的服務器進行repo鏡像。但是,如果你的Bitbucket服務器使用gnutls lib(默認爲Ubuntu)編譯的git客戶端,你可能會在bitbucket日誌中出現錯誤「gnutls_handshake()failed:Illegal parameter」。解決它,建立你的git客戶端反對openssl庫 - > https://askubuntu.com/questions/186847/error-gnutls-handshake-failed-when-connecting-to-https-servers –