好的,首先,我對git非常陌生。Git on Hudson更新子模塊時發生致命異常
我已經建立了一個構建,但它剛剛開始失敗,出現以下錯誤。
FATAL: Command "git submodule update" returned status code 1:
stdout:
stderr: fatal: reference is not a tree: 72294b9c60128b4495dfe0bf3aa014b3bf1853e9
Unable to checkout '72294b9c60128b4495dfe0bf3aa014b3bf1853e9' in submodule path 'sub/Android-ViewPagerIndicator'
hudson.plugins.git.GitException: Command "git submodule update" returned status code 1:
stdout:
stderr: fatal: reference is not a tree: 72294b9c60128b4495dfe0bf3aa014b3bf1853e9
Unable to checkout '72294b9c60128b4495dfe0bf3aa014b3bf1853e9' in submodule path 'sub/Android-ViewPagerIndicator'
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:838)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:800)
at hudson.plugins.git.GitAPI.submoduleUpdate(GitAPI.java:429)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1308)
at hudson.plugins.git.GitSCM$4.invoke(GitSCM.java:1269)
at hudson.FilePath.act(FilePath.java:851)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1269)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
at hudson.model.Run.execute(Run.java:1516)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
所以你會介意分享你如何設置構建? – eis
我爲jenkins和github使用了一個git插件。回購有4個子模塊。 (我沒有設置這個)。構建腳本:PATH =/Applications/android/tools /:$ PATH PATH =/Applications/android/platform-tools /:$ PATH android update project --path。 --subprojects --target android-16 cd app; rake build:debug – serenskye
好的,那麼詹金斯/哈德森*工作*細節怎麼樣?像你有什麼樣的SCM網址,什麼樣的refspec,你使用標記,如果你有,你是否需要它等等。 – eis