jenkins发布application且并运行

若如初见. 提交于 2020-08-12 20:27:42

一、发布配置

  • 差异配置:编译内容
    • 编译目标NetWorkClient/KJ90NetClient.csproj
    • 编译命令
    /t:build
    /p:Configuration=Release  /p:OutputPath=../UploadRelease
    

image

  • 运行外部程序
    image

二、配置jenkins启动外部程序不报错

  • 通过参数配置
key: BUILD_ID
value: dontKillMe

image

  • 设置全局变量配置
    Go to Jenkins-->Manage Jenkins-->Configure System Now under 'Global properties' section, under Environment variables, click on ADD button to add new Environment variable. Give Name= BUILD_ID and value='allow_to_run_as_daemon start_my_service' (without quote). Click on save button. And you are done.
    image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!