通过Jenkins上的脚本在节点上永久运行后台进程,并让Jenkins成功构建 [英] Run a background process permanently on a node through a script on Jenkins and let Jenkins build successfully

查看:495
本文介绍了通过Jenkins上的脚本在节点上永久运行后台进程,并让Jenkins成功构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过脚本运行后台进程,Jenkin开始构建时将调用此脚本.但是,jenkins构建卡住了,并且在查看控制台时似乎正在运行该进程并等待其完成.

I am running a background process through a script , this script is invoked when Jenkin starts building. However, the jenkins build gets stuck and on looking at the console it seems it is running the process and waits for it to complete.

此过程将永远不会完成,可以将其视为侦听其客户端的服务器.每次触发时,我触发的所有操作都会杀死服务器进程并重新启动该进程,因此我可以完美地处理这种情况.

This process will never complete, consider this as a server listening to its client.Every build I trigger kills the server process and restarts the process, so I am perfectly handling that scenario.

有什么办法可以成功构建jenkins吗?

Is there any way , I can build jenkins successfully?

推荐答案

确切的详细信息取决于您的操作系统(您没有告诉您),但是Jenkins Wiki上有关于此的页面:

The exact details depend on your operating system (which you did not tell), but the Jenkins wiki has a page about this: https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build

这篇关于通过Jenkins上的脚本在节点上永久运行后台进程,并让Jenkins成功构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆