https://stackoverflow.com/questions/17024441/process-leaked-file-descriptors-error-on-jenkins

1.

 BUILD_ID=dontKillMe nohup ./yourStartScript.sh &

不确定是否有效

2.

Add this line as a JAVA_ARGS argument when you start your jenkins server (I put mine on /etc/default/jenkins in my Ubuntu box)

-Dhudson.util.ProcessTree.disable=true

Centos 里面可能是/etc/sysconfig/jenkins

3.

By default, Jenkins will kill all the spawned process at the completion of build.

To override this, you need to create environment variable BUILD_ID.

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.

Now the spawn process will continue to execute even after the build got completed.

这个试验后有效。

最新文章

  1. 在线课程笔记—.NET基础
  2. iBATIS代码生成分析
  3. 电量检测芯片BQ27510使用心得
  4. eclipse 项目修改和更新项目,回退版本,解决分支的冲突的办法
  5. 浅析Oracle范式的概念(转载)
  6. 菜鸟学习Struts——总结
  7. poj 2349 Arctic Network
  8. VMProtect使用小计【一】
  9. POJ1321 棋盘问题(dfs)
  10. openssl CA 自签证书,阿里云配置tomcat https
  11. WISPr1.0
  12. HDOJ 2665 Kth number
  13. spring-mvc-两个个小例子
  14. 2.跑nodejs文件
  15. 『网络の转载』关于初学者上传文件到github的方法
  16. OpenCV入门之寻找图像的凸包(convex hull)
  17. 696. Count Binary Substrings
  18. No input file specified ci
  19. sqlserver常用调优脚本
  20. iOS端JSON转Model链式编程框架SuperKVC使用方法与原理

热门文章

  1. AjaxPro怎么用
  2. 原生js操作Dom节点:CRUD
  3. Vim新手节省时间的10多个小技巧
  4. 发送tcp的时候,数据包是如何拷贝的
  5. (sender as TButton).some 和 TButton(sender).some 的区别是什么?
  6. WPF DataGrid的使用
  7. HUAS 1476 不等数列(DP)
  8. Python 日志输出中添加上下文信息
  9. 事件驱动与异步IO--待更新
  10. BZOJ1101 & 洛谷3455:[POI2007]ZAP——题解