2017-02-09 76 views
0

我想在使用這個p4插件的Jenkins中創建一個工作。我成功安裝了插件。當我試圖在執行shell中運行perforce命令時,我得到了異常。P4插件在jenkins中失敗

[workspace] $ /bin/sh -xe /tmp/hudson6165069639422088214.sh 
+ echo 'Trunk Release is r2017.1.0' 
Trunk Release is r2017.1.0 
++ /usr/local/perforce/p4 -P E208C3B005AB1F8E7C138F7156F857EC counter cos_sso_trunk_build_number 
User jenkins doesn't exist. 
+ BLD_NUM= 
Build step 'Execute shell' marked build as failure 
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered 
Finished: FAILURE 

我已經包括P4配置,它的工作正常。但上面的錯誤是,當我將嘗試在控制檯早期的Perforce插件(舊)的P4命令其工作正常

回答

0

它期望爲用戶「詹金斯」的帳戶。爲該用戶創建一個帳戶,或使用現有用戶。

在配置頁面的源代碼管理 - > Perforce Software Perforce Credentials下,選擇添加以添加用戶信息。

+0

感謝您的回覆。我已經添加了這些細節。它的工作正常。但是上面的錯誤是我會在控制檯嘗試P4命令的時候 –