2016-05-14 193 views
2

我安裝了SCM Sync配置插件。我創建了存儲庫以保留jenkins作業的備份。 在創建的作業中,在書籤源代碼管理中,我給出了Repository URL和Credentials。 作業成功後,我還沒有看到任何提交存儲庫。 只有此警報出現在右下角:「SCM Sync狀態:Wed May 11 10:53:34 EDT 2016:檢入文件到scm存儲庫時發生錯誤。」 我在jenkins中設置記錄器就像它在這裏所說:https://wiki.jenkins-ci.org/display/JENKINS/ScmSyncConfig+Troubleshootings 但沒有人出現。我將它與步驟中描述的一樣:「確保您可以從Jenkins訪問您的Scm存儲庫」。 我設置了名爲「jenkins進程所有者的id_rsa w主目錄」的個人/私鑰。 我可以編輯/hudson.scm。 :Jenkins SCM Sync配置插件不工作

<hudson.scm.SubversionSCM_-DescriptorImpl plugin="[email protected]"> 
    <generation>1</generation> 
    <mayHaveLegacyPerJobCredentials>false</mayHaveLegacyPerJobCredentials> 
    <workspaceFormat>8</workspaceFormat> 
    <validateRemoteUpToVar>false</validateRemoteUpToVar> 
    <storeAuthToDisk>false</storeAuthToDisk> 
</hudson.scm.SubversionSCM_-DescriptorImpl> 

但效果是一樣的。建立成功,檢查文件到scm存儲庫時出錯,在記錄器中沒有信息 。

在這裏,我將貼上什麼出現在控制檯輸出:

Building on master in workspace /home/tomcat/.jenkins/jobs/ScmSyncConfigurationTest/workspace 
Cloning the remote Git repository 
Cloning repository [email protected]:~~/jenkinsbackup.git 
> git init /home/tomcat/.jenkins/jobs/ScmSyncConfigurationTest/workspace # timeout=10 
Fetching upstream changes from [email protected]:~~/jenkinsbackup.git 
> git --version # timeout=10 
using GIT_SSH to set credentials 
> git -c core.askpass=true fetch --tags --progress [email protected]:~~/jenkinsbackup.git +refs/heads/*:refs/remotes/origin/* 
> git config remote.origin.url [email protected]:~~/jenkinsbackup.git # timeout=10 
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 
> git config remote.origin.url [email protected]:~~/jenkinsbackup.git # timeout=10 
Fetching upstream changes from [email protected]:~~/jenkinsbackup.git 
using GIT_SSH to set credentials 
> git -c core.askpass=true fetch --tags --progress [email protected]:~~/jenkinsbackup.git +refs/heads/*:refs/remotes/origin/* 
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 
Checking out Revision 82c782cf29258f58a630d0ce2728bf8c85d4e03d (refs/remotes/origin/master) 
> git config core.sparsecheckout # timeout=10 
> git checkout -f 82c782cf29258f58a630d0ce2728bf8c85d4e03d 
> git rev-list 82c782cf29258f58a630d0ce2728bf8c85d4e03d # timeout=10 
[workspace] $ /bin/sh -xe /usr/share/apache-tomcat-latest/temp/hudson1626031519696649678.sh 
+ echo hello world 
hello world 
Finished: SUCCESS 

如果有什麼我跳過了,我希望你的努力來幫助我提供任何線索。

+0

我無法得到這個插件,但最終因版本0.0.9中的一個bug而停止嘗試使用它。一旦你重新啓動jenkins,你的整個jenkins站點將只是一個白色屏幕,你必須手動恢復配置才能修復。這不是一個小問題。 – TheEllis

回答