为什么我的 Jenkins Doxygen make.bat 不工作?
Why is my Jenkins Doxygen make.bat not working?
我正在使用带有 Doxygen 插件的 Jenkins。
当我生成我的项目文档时,doxygen 生成一个 make.bat 来将 latex 文件转换为 pdf 文件。
当我 运行 自己 make.bat 或文档很小 (< 30mb) 时,一切正常。当我为一个大项目 (pdf > 60mb) 生成文档时,问题就开始了。我在 Jenkins 中执行 make.bat :
呼叫/等待make.bat
但 jenkins 只是在 pdf 大约 30mb 时跳转到下一个批处理命令,然后 pdf 被删除。
我的 make.bat 是否正确 运行 是否有任何解决方案?
我没有收到任何错误
编辑:
命令 pdflatex 应该生成 pdf 文件,但 Jenkins 只是跳转到下一个命令。就像我之前说的,当我生成一个较小的文档或者我通过单击 make.bat 手动生成时,一切正常
make.bat内容:
set Dir_Old=%cd%
cd /D %~dp0
del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
pdflatex refman
echo ----
makeindex refman.idx
echo ----
pdflatex refman
setlocal enabledelayedexpansion
set count=8
:repeat
set content=X
for /F "tokens=*" %%T in ( 'findstr /C:"Rerun LaTeX" refman.log' ) do set content="%%~T"
if !content! == X for /F "tokens=*" %%T in ( 'findstr /C:"Rerun to get cross-references right" refman.log' ) do set content="%%~T"
if !content! == X goto :skip
set /a count-=1
if !count! EQU 0 goto :skip
echo ----
pdflatex refman
goto :repeat
:skip
endlocal
makeindex refman.idx
pdflatex refman
cd /D %Dir_Old%
set Dir_Old=
Jenkins 日志大项目:
C:\build_server\Jenkins\workspace\project>exit 0
[project] $ cmd /c call C:\Windows\TEMP\jenkins4374423821016124850.bat
C:\build_server\Jenkins\workspace\project>set latex_make_path=Build_Gen\latex\
C:\build_server\Jenkins\workspace\project>Build_Gen\latex\make.bat
C:\build_server\Jenkins\workspace\project>set Dir_Old=C:\build_server\Jenkins\workspace\project
C:\build_server\Jenkins\workspace\project>cd /D C:\build_server\Jenkins\workspace\project\Build_Gen\latex\
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
Could Not Find C:\build_server\Jenkins\workspace\project\Build_Gen\latex\*.ps
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>echo ----
----
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>makeindex refman.idx
This is makeindex, version 2.15 [MiKTeX 2.9.6100 64-bit] (kpathsea + Thai support).
Scanning input file refman.idx...............................................done (43730 entries accepted, 716 rejected).
Sorting entries.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done (728591 comparisons).
Generating output file refman.ind...............................................done (73598 lines written, 0 warnings).
Output written in refman.ind.
Transcript written in refman.ilg.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>echo ----
----
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>setlocal enabledelayedexpansion
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>set count=8
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>set content=X
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>for /F "tokens=*" %T in ('findstr /C:"Rerun LaTeX" refman.log') do set content="%~T"
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>if !content! == X for /F "tokens=*" %T in ('findstr /C:"Rerun to get cross-references right" refman.log') do set content="%~T"
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>if !content! == X goto :skip
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>endlocal
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>makeindex refman.idx
This is makeindex, version 2.15 [MiKTeX 2.9.6100 64-bit] (kpathsea + Thai support).
Scanning input file refman.idx..................done (14522 entries accepted, 0 rejected).
Sorting entries.....................................................................................................................................................done (218967 comparisons).
Generating output file refman.ind..................done (20218 lines written, 0 warnings).
Output written in refman.ind.
Transcript written in refman.ilg.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
应该在此处创建大 pdf...但没有任何反应
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>cd /D C:\build_server\Jenkins\workspace\project
C:\build_server\Jenkins\workspace\project>set Dir_Old=
[project] $ cmd /c call C:\Windows\TEMP\jenkins8022177968622333670.bat
解决方案:
将 make.bat 复制到您的 jenkins bat 中。如果需要更改目录和路径,并在每个 pdflatex refman 命令后添加 --pool-size=5000000。
将 make.bat 复制到您的 jenkins bat 中。如果需要更改目录和路径,并在每个 pdflatex refman 命令后添加 --pool-size=5000000。
我正在使用带有 Doxygen 插件的 Jenkins。 当我生成我的项目文档时,doxygen 生成一个 make.bat 来将 latex 文件转换为 pdf 文件。
当我 运行 自己 make.bat 或文档很小 (< 30mb) 时,一切正常。当我为一个大项目 (pdf > 60mb) 生成文档时,问题就开始了。我在 Jenkins 中执行 make.bat :
呼叫/等待make.bat
但 jenkins 只是在 pdf 大约 30mb 时跳转到下一个批处理命令,然后 pdf 被删除。
我的 make.bat 是否正确 运行 是否有任何解决方案? 我没有收到任何错误
编辑: 命令 pdflatex 应该生成 pdf 文件,但 Jenkins 只是跳转到下一个命令。就像我之前说的,当我生成一个较小的文档或者我通过单击 make.bat 手动生成时,一切正常
make.bat内容:
set Dir_Old=%cd%
cd /D %~dp0
del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
pdflatex refman
echo ----
makeindex refman.idx
echo ----
pdflatex refman
setlocal enabledelayedexpansion
set count=8
:repeat
set content=X
for /F "tokens=*" %%T in ( 'findstr /C:"Rerun LaTeX" refman.log' ) do set content="%%~T"
if !content! == X for /F "tokens=*" %%T in ( 'findstr /C:"Rerun to get cross-references right" refman.log' ) do set content="%%~T"
if !content! == X goto :skip
set /a count-=1
if !count! EQU 0 goto :skip
echo ----
pdflatex refman
goto :repeat
:skip
endlocal
makeindex refman.idx
pdflatex refman
cd /D %Dir_Old%
set Dir_Old=
Jenkins 日志大项目:
C:\build_server\Jenkins\workspace\project>exit 0
[project] $ cmd /c call C:\Windows\TEMP\jenkins4374423821016124850.bat
C:\build_server\Jenkins\workspace\project>set latex_make_path=Build_Gen\latex\
C:\build_server\Jenkins\workspace\project>Build_Gen\latex\make.bat
C:\build_server\Jenkins\workspace\project>set Dir_Old=C:\build_server\Jenkins\workspace\project
C:\build_server\Jenkins\workspace\project>cd /D C:\build_server\Jenkins\workspace\project\Build_Gen\latex\
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>del /s /f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out *.brf *.blg *.bbl refman.pdf
Could Not Find C:\build_server\Jenkins\workspace\project\Build_Gen\latex\*.ps
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>echo ----
----
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>makeindex refman.idx
This is makeindex, version 2.15 [MiKTeX 2.9.6100 64-bit] (kpathsea + Thai support).
Scanning input file refman.idx...............................................done (43730 entries accepted, 716 rejected).
Sorting entries.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................done (728591 comparisons).
Generating output file refman.ind...............................................done (73598 lines written, 0 warnings).
Output written in refman.ind.
Transcript written in refman.ilg.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>echo ----
----
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>setlocal enabledelayedexpansion
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>set count=8
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>set content=X
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>for /F "tokens=*" %T in ('findstr /C:"Rerun LaTeX" refman.log') do set content="%~T"
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>if !content! == X for /F "tokens=*" %T in ('findstr /C:"Rerun to get cross-references right" refman.log') do set content="%~T"
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>if !content! == X goto :skip
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>endlocal
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>makeindex refman.idx
This is makeindex, version 2.15 [MiKTeX 2.9.6100 64-bit] (kpathsea + Thai support).
Scanning input file refman.idx..................done (14522 entries accepted, 0 rejected).
Sorting entries.....................................................................................................................................................done (218967 comparisons).
Generating output file refman.ind..................done (20218 lines written, 0 warnings).
Output written in refman.ind.
Transcript written in refman.ilg.
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>pdflatex refman
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (MiKTeX 2.9.6100 64-bit)
entering extended mode
(refman.tex
LaTeX2e <2016/03/31> patch level 3
Babel <3.9r> and hyphenation patterns for 75 language(s) loaded.
应该在此处创建大 pdf...但没有任何反应
C:\build_server\Jenkins\workspace\project\Build_Gen\latex>cd /D C:\build_server\Jenkins\workspace\project
C:\build_server\Jenkins\workspace\project>set Dir_Old=
[project] $ cmd /c call C:\Windows\TEMP\jenkins8022177968622333670.bat
解决方案:
将 make.bat 复制到您的 jenkins bat 中。如果需要更改目录和路径,并在每个 pdflatex refman 命令后添加 --pool-size=5000000。
将 make.bat 复制到您的 jenkins bat 中。如果需要更改目录和路径,并在每个 pdflatex refman 命令后添加 --pool-size=5000000。