Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Same workspace for multiple jobs

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.

like image 679
Scg Avatar asked Feb 03 '14 05:02

Scg


People also ask

How do I create multiple workspaces in Jenkins?

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.

Which of the following plugin can be used to copy the workspace of one job into another job?

With the ez-template plugin installed "Copy existing job" applied to a template or to a job using a template creates a new job dependent on the template. If you actually want an independent copy you can then delete the Use another job as a template configuration.

How do I add a custom workspace in Jenkins?

Build section. Click on Advanced button on the right side of the page. Check "Use custom workspace" Fill in the path to the desired folder.

Where is Jenkins job workspace?

Default workspace location - It seems like the latest Jenkins has the default workspace in Jenkins\jobs[projectName]\workspace and is overwritten (or wiped if selected) for every build.


1 Answers

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.

like image 109
Dipu H Avatar answered Sep 20 '22 13:09

Dipu H