I'm working on automating the build of our online help and for such I am using the Help And Manual command line and Jenkins.
Now, I've tried this in different ways, in a DOS window and in a PowerShell Window, both in batch files (.bat) or powershell files (.ps1) and the same on Jenkins.
I'm using these tags /HTML=<file>/I=HTML,ALL /O=<file> /L=<file>
Everytime I execute this command, the ERRORLEVEL is raised above 0 (i.e. some error happened), so the build fails (on Jenkins, and also with these scripts I wrote evaluating the ERRORLEVEL / ExitCode) BUT the thing is that the Help and Manual compilation seems to have went fine, as no error message is output, not in the console, not in the log.
If this can help find the issue, I did notice that executing the batch file in the DOS prompt makes it end with "Compilation complete" and stays there (No matter how long I wait it seems I have to press enter to return to the command prompt). Whereas executing the powershell script returns ERRORLEVEL 1.
One also quite weird thing is that executing the *batch* file (.bat, not .ps1) in powershell window does seem to work without raising any error, but for some reason doing the same through Jenkins does detect the ERRORLEVEL (ARGH ! >.< )
I am wondering if there is a bug or if it is just me that's doing something wrong.
This is the command I use:
F:\Jenkins\Workspaces\Help_Rdm_Win_En>"C:\Program Files (x86)\EC Software\HelpAndManual7\HELPMAN.EXE" F:\Jenkins\Workspaces\Help_Rdm_Win_En\common\..\en\products\Rdm\Windows\Rdm_Windows_en.hmxp /HTML=F:\Jenkins\Workspaces\Help_Rdm_Win_En\common\Resources\index.html /I=HTML,ALL /O=F:\Jenkins\Workspaces\Help_Rdm_Win_En\common\..\en\skins\common\DevZoomCommon.hmSkin /L=C:\Users\david\AppData\Local\Temp\Rdm_Windows_en.log
And this is the output I get (in the console and log file):
#Help & Manual command line compiler version 7.2.0 build 4035
Compiling F:\Jenkins\Workspaces\Help_Rdm_Win_En\common\..\en\products\Rdm\Windows\Rdm_Windows_en.hmxp
[Info] Preparing topics
[Info] Preparing table of contents
[Info] Preparing project files
[Info] Preparing merged projects
[Info] Writing topics
[Info] Generating Webhelp
[Info] Compilation of F:\Jenkins\Workspaces\Help_Rdm_Win_En\en\products\Rdm\Windows\Rdm_Windows_en.hmxp started 2017-11-22 11:55:12 AM
[Compiler Results] Generating Full-text Search Index...
[Info] Compilation complete
Please help me out, I need to make this work with Jenkins.
