jenkins,

Jenkins - same workspace for multiple jobs

Nov 20, 2021 · 1 min read · Post a comment
Jenkins - same workspace for multiple jobs

In order to save some space on your Jenkins instance or if you need to create some backup jobs for multiple environments, you will need to enable shared space between multiple jobs. It’s a quick and easy job in Jenkins but it’s a little bit tricky cause it’s hidden in the first place.

Prerequisites

  • Jenkins

Solution

Step 1. Open your desired job and click on Configure: jenk1

Step 2. Click on the General section and at the right bottom there is a button Advanced... jenk2

Step 3. Click on the Advanced... button and it will expand some additional features. Select the Use custom workspace check button and put the workspace path into the input field: jenk3

Step 4. If you need to configure some other jobs to use that path, follow the same procedure from step 1

Conclusion

As I said previously it’s a quick and easy job, so if you find it useful follow our official channel on telegram. If you have some additional questions regarding Jenkins please don’t hesitate to leave a comment below.