多个作业使用相同的工作空间 [英] Same workspace for multiple jobs
问题描述
我有一个工作叫做开发",另一个项目叫做代码分析".目前,我们有两个不同的作业和不同的工作区,但是代码相同.有什么办法可以将同一工作空间用于多个作业?
我检查了Jenkins中可用的插件,但没有找到合适的插件.
I have a job called "development" and another project called "code analysis". At the moment we have two different jobs and different workspaces, but same code; is there any way we could use the same workspace for multiple jobs?
I checked the plugins available in Jenkins but I haven't found any suitable one.
推荐答案
假设您的开发" Jenkins作业工作区为/var/workspace/job1
.在代码分析"作业配置页面中,在选项卡General
下单击Advanced...
,然后选择选项Use custom workspace
,并为您的开发"作业提供相同的工作空间/var/workspace/job1
.
Suppose your "development" Jenkins job workspace is /var/workspace/job1
. In the "code analysis" job configuration page, under the tab General
click on Advanced...
and select the option Use custom workspace
and give the same workspace /var/workspace/job1
as of your "development" job.
这篇关于多个作业使用相同的工作空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!