0

Jenkins Job에서 PowerBuilder 자동 빌드를 실행할 때 아래 오류가 나타납니다.Jenkins 작업 orca 스크립트를 실행할 때 오류가 발생했습니다 -23 오류

명령 프롬프트에서 직접 실행되는 아래의 명령 파일에서 이러한 오류가 발생하지 않는 경우. 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를 제거 도와주세요.

파워 빌더 12.5

젠킨스 버전 1.617

+1

합니까 레지스트리의 일부에 액세스 할 수에서 당신은 젠킨스를 실행하는 사용자 계정? – Slapout

+0

예. 사용자 계정에 대한 액세스 권한이 있습니다. –

답변

0

는 SCC 명령과 PushOK 신경 쓰지 마십시오. 작업 구성의 소스 코드 관리 섹션에서 Subversion 모듈을 선택하기 만하면됩니다. 그런 다음 OrcaScript에서 라이브러리를 만들고 파일을 가져옵니다. 이것이 내가 PBOrca에서 사용하고있는 것으로, PowerBuilder와 함께 제공되는 OrcaScript보다 추천합니다.

# Imports and migrates the target 
# This script expects that the project and all required resources are present in the WORKSPACE folder 
# Variables 
# these are required in the environment 
# WORKSPACE - full path to the root of the project. Jenkins sets this in a Jenkins build 
# ORCADLL - name of the ORCA dll to use, e.g. pborc125.dll 
# 
# these are loaded from the config section of build.ini 
# TARGETNAME - name of the target to build, e.g. sample.pbt 
# 
session begin %%ORCADLL%% 

profile string %%WORKSPACE%%\build.ini, config, targetname 

cd %%WORKSPACE%% 

timestamp 
echo creating PBLs 
target create lib .\%%TARGETNAME%% 
target set liblist .\%%TARGETNAME%% 

# set default pb application to allow us to import target 
set application , 

timestamp 
echo Importing target %%TARGETNAME%% 
target import .\%%TARGETNAME%%, .\ 

#end orca session and switch to the target we just imported 
timestamp 
echo Finished importing %%TARGETNAME%% 
session end 
session begin %%ORCADLL%% 

# set liblist and application from target 
target set liblist .\%%TARGETNAME%% 
target set app .\%%TARGETNAME%% 

timestamp 
echo Migrating target %%TARGETNAME%% 
build app migrate 

timestamp 
echo Finished Migrating target %%TARGETNAME%% 
session end 

젠킨스의 설정은 다음과 같습니다 Jenkins Source Code Management Section

Jenkins Build Triggers Section

관련 문제