且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 Jenkins 中分叉后台进程?设置 BUILD_ID 并使用 nohup 似乎不起作用

更新时间:2022-06-12 05:25:58

如果您注意到 这个 页面,您会注意到,在使用***式模板创建的作业的情况下,BUILD_ID 确实有效.还有许多其他人面临类似的问题.只有在非***式工作时才会出现此类问题.

If you will notice the comment by user 'mdp' in this page, you will notice that in case of jobs created using freestyle template, BUILD_ID does work. There are many others who faced similar issue. Such issues were seen only when it was a non-freestyle job.

或者,还应检查取消设置以下变量:HUDSON_COOKIE、HUDSON_SERVER_COOKIE、JENKINS_COOKIE 或 JENKINS_SERVER_COOKIE,如 这个链接.

Alternatively, should also check unsetting the following variables: HUDSON_COOKIE, HUDSON_SERVER_COOKIE, JENKINS_COOKIE or JENKINS_SERVER_COOKIE as suggested by few (Comments section) in this link.