jenkins發佈application且並運行

1、發佈配置

  • 差別配置:編譯內容
    • 編譯目標NetWorkClient/KJ90NetClient.csproj
    • 編譯命令
    /t:build
    /p:Configuration=Release  /p:OutputPath=../UploadRelease

image

  • 運行外部程序
    image

2、配置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
相關文章
相關標籤/搜索