好的,我有一个新问题。我正在尝试通过Windows批处理命令
使用高级安装程序 "C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip" /SetVersion %previousVersion%
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip" /SetProductCode -langid 1033
"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /rebuild "C:\jenkins\workspace\myProject\Platforms\Win32\Install\myProject.aip"
项目在调用rebuild命令时挂起并且永远不会完成。
我想也许这可能是项目中我的一个文件的路径问题,所以我查看了所有路径,并确保它们是正确的。我也进入了安装程序并将所有路径设置为绝对路径。
不幸的是,Advance Installer在命令提示符下不显示错误,除非该过程完成,否则日志不起作用。
当我在我们的构建机器上运行高级安装程序时,它可以毫无问题地构建项目。
有什么建议吗?
更新:这是我的输出日志和AI位置。我将AIP文件移动到根目录。
Started by user Admin
[EnvInject] - Preparing an environment for the build.
Building remotely on Build 3 in workspace c:\jenkins\workspace\myProject
[EnvInject] - Executing scripts and injecting environment variables after the SCM step.
[EnvInject] - Injecting as environment variables the properties content
FILE_INSTALLER="C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe"
DIR_INSTALL="C:\jenkins\workspace\myProject\myProject"
FILE_INSTALL="myProject.aip"
[EnvInject] - Variables injected successfully.
[testdev] $ cmd /c call C:\DOCUME~1\SOFTWA~1.NAF\LOCALS~1\Temp\hudson47906.bat
c:\jenkins\workspace\testdev>cd "C:\jenkins\workspace\myProject\myProject"
C:\jenkins\workspace\myProject\myProject>dir
Volume in drive C has no label.
Volume Serial Number is 341D-83B7
Directory of C:\jenkins\workspace\myProject\myProject
05/21/2012 09:52 AM <DIR> .
05/21/2012 09:52 AM <DIR> ..
05/14/2012 01:03 PM <DIR> .hg
05/14/2012 09:20 AM 146 .hgignore
05/14/2012 09:20 AM 6,158 .hgtags
05/14/2012 09:20 AM 278 delete compiled files.bat
05/14/2012 09:20 AM 293 file changes.bat
05/15/2012 03:13 PM <DIR> myProjectDocs
05/14/2012 09:20 AM <DIR> Platforms
05/14/2012 09:20 AM <DIR> Universal
05/21/2012 09:52 AM 494,538 myProject.aip
5 File(s) 501,413 bytes
6 Dir(s) 26,546,180,096 bytes free
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "myProject.aip" /SetVersion 2.6.4.17
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /edit "myProject.aip" /SetProductCode -langid 1033
C:\jenkins\workspace\myProject\myProject>"C:\Program Files\Caphyon\Advanced Installer 8.0.1\bin\x86\advinst.exe" /rebuild "myProject.aip"
Build was aborted
Aborted by Admin
[PostBuildScript] - Execution post build scripts.
[PostBuildScript] Build is not success : do not execute script
Build step '[PostBuildScript] - Execute a set of scripts' marked build as failure
Finished: ABORTED
构建机器上的AI位置。
我确实在服务器环境变量中列出了高级安装程序路径。
答案 0 :(得分:5)
您在命令提示符中看不到输出,因为您正在调用“advinst.exe”。 CLI interface of Advanced Installer旨在通过“AdvancedInstaller.com”调用。
另外,我认为机器上的可用空间不是问题吗?
答案 1 :(得分:2)
1)检查机器并确保没有弹出任何消息。
2)检查AI的版本以及用于创建安装文件的AI版本。
3)检查指定的版本并确保它符合x.x.x.x格式。
答案 2 :(得分:1)
要检查的第一件事:在前台运行Jenkins(例如java -jar hudson.war
)而不是服务。