jenkins发布application且并运行

一、发布配置

  • 差异配置:编译内容
    • 编译目标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
posted @ 2020-05-10 20:39  小龙女先生  阅读(356)  评论(0编辑  收藏  举报