用Jenkins的Windows batch command编译各种类型的项目

来源:互联网 发布:mac zookeeper 客户端 编辑:程序博客网 时间:2024/06/05 16:35
  • Java项目

call ../loadsource.batant -f %JOB_NAME% release
  • VS2010项目
call ../loadsource.batcd %JOB_NAME%devenv tmbexptm_n.sln /Rebuild debugcopy Debug\tmbexptm_n.exe %currbld_tmb%\bin\tmbexptm.exe
  • C项目

call ../loadsource.batcd %JOB_NAME%call db2cmd /i /w nmake /a twbchkg.makcopy twbchkg.exe %currbld_twb%

在db2cmd命令窗口中编译,不需要db2的话可以直接nmake /a twbchkg.mak


  • InstallShield项目

call ../loadsource.batecho Coping installshield directory to %installshield_home%....xcopy %JOB_NAME%\installshield %installshield_home% /y /e /h /I >nulrem cd %installshield_home%rem IsCmdBld.exe -p myinst\twb3922.ism -b %installshield_home%\myinst\twb3922 -x7z a twb3.9.23_20161210.zip "D:\InstallShield\2011\myinst\twb3923\DiskImages\Disk1"

上面两行rem注释语句已经用InstallShield plugin替换掉了

Execute InstallShield builder

InstallShield Version : 2011

InstallShield Project File : D:\InstallShield\2011\myinst\twb3923.ism

Command Line Arguments : -x

  • Web项目
7z a helpdoc.zip %src%\helpdoc\7z x helpdoc.zip -y -oC:\inetpub\wwwroot






原创粉丝点击