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

查看:15
本文介绍了通过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 有一个关于这个的页面:https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+构建

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天全站免登陆