0
從Jenkins Job執行PowerBuilder自動編譯時,我收到下面提到的錯誤。Jenkins在執行orca腳本時出錯-23錯誤
D:\Jenkins\jobs\RxProcessing Build\workspace>"C:\Program Files (x86)\Sybase\Shared\PowerBuilder\orcascr125.exe"
"C:\SVN_PSV\Trunk\AutoBuild\GetLatest.dat"
Sybase (R) OrcaScript interpreter version 12.5
Using ANSI source file C:\SVN_PSV\Trunk\AutoBuild\GetLatest.dat.
Start Session
scc get connect properties "C:\SVN_PSV\Trunk\PB125\PfW\xxxx32.pbw"
Orca error in 'scc get connect properties'. Result Code -23.
Unable to read SCC connect properties for C:\SVN_PSV\Trunk\PB125\PfW\xxxx32.pbw
An error occurred reading the Windows registry entry.
Last Command Failed.
scc close
You must successfully issue scc connect before you can call this method.
End Session
當在命令提示符下直接執行的下面的命令文件沒有給出任何這樣的錯誤。 僅在執行Jenkins Job中的CMD文件時發生錯誤。
以下是調用Orca腳本的命令文件內容。
attrib -R "C:\SVN_PSV\Trunk\PB125\*.*" /S /D
attrib -R "C:\SVN_PSV\Trunk\PB125\PfW\*.*" /S
attrib -R "C:\SVN_PSV\Trunk\PB125\PFC\*.*" /S
attrib -R "C:\SVN_PSV\Trunk\PB125\Shared\*.*" /S
"C:\Program Files (x86)\Sybase\Shared\PowerBuilder\orcascr125.exe" "C:\SVN_PSV\Trunk\AutoBuild\GetLatest.dat"
attrib -R "C:\SVN_PSV\Trunk\PB125\*.*" /S /D
attrib -R "C:\SVN_PSV\Trunk\PB125\PfW\*.*" /S
attrib -R "C:\SVN_PSV\Trunk\PB125\PFC\*.*" /S
attrib -R "C:\SVN_PSV\Trunk\PB125\Shared\*.*" /S
"C:\Program Files (x86)\Sybase\Shared\PowerBuilder\orcascr125.exe" "C:\SVN_PSV\Trunk\AutoBuild\SolBuild.dat"
pause
奧卡腳本: GetLatest.dat:
start session
scc get connect properties "C:\SVN_PSV\Trunk\PB125\PfW\xxxx32.pbw"
scc set connect property provider "PushOk SVNSCC"
scc set connect property userid "build"
scc set connect property password "*********"
scc set connect property logfile "C:\SVN_PSV\Trunk\AutoBuild\pbscc120.log"
scc set connect property logappend True
scc connect
SCC set connect property localprojpath "C:\SVN_PSV\Trunk\PB125"
scc set target "C:\SVN_PSV\Trunk\PB125\PfW\xxxx.pbt" "refresh_all"
;SCC set target "C:\SVN_PSV\Trunk\PB125\PfW\xxxx.pbt" "OUTOFDATE EXCLUDE_CHECKOUT"
SCC refresh target "full"
;SCC refresh target incremental
SCC Close
end session
請幫我刪除此錯誤代碼-23。
Power Builder的12.5
詹金斯版本1.617
是否正在運行詹金斯下訪問註冊表的那部分用戶帳戶? – Slapout
是的。用戶帳戶有權訪問它。 –