Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

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.

1 Answer

+1 vote
by (50.2k points)

For this question, you need to do the following steps to assign the same workspace. 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.

Browse Categories

...