情况是,包含使用 omake.exe 执行的批处理命令文件位于明文视图中。从 dos 命令窗口调用这个 bat 文件工作得很好,但是如果我从 Jenkins 作业调用相同的 bat 文件,我会收到以下错误消息:
Started by user XXXXXXX
[EnvInject] - Loading node environment variables.
Building in workspace C:\app\tools\Jenkins\jobs\workspace
[workspace] $ cmd /c call C:\WINDOWS\TEMP\hudson7938450600036163921.bat
C:\app\tools\Jenkins\jobs\workspace>cleartool startview Z000000_Latest
C:\app\tools\Jenkins\jobs\workspace>subst Y: X:\Z000000_Latest
C:\app\tools\Jenkins\jobs\workspace>cd /d "Y:\prj_cfg"
Y:\prj_cfg>omake Y:\source\sw\sw_main.cpp
omake: Error: Unable to start build session for view "Z000000_Latest" - Permission denied
omake: command line: Unable to get bldcm session handle
. Stop.
Y:\prj_cfg>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
有人有想法吗?谢谢