I want to use the Shared Workspace plugin, so I set up the following key/value pair in my Manage Jenkins -> Configure System -> Workspace Sharing

Name: sandbox-workspace
Repository URL: git@bitbucket.org:mycompany/myrepo.git

Now I want to share the above workspace between two separate pipeline jobs Job1 and Job2, where Job1 triggers Job2 so they're guaranteed to never run concurrently. Each job may/can run on different nodes. What is the pipeline syntax for using the above shared workspace?

1 Answer 1


Considering that plugin hasn't been updated in 7 years, it almost certainly doesn't have Pipeline support - Pipelines were likely either nonexistent or not widely used last time that plugin received an update.

You can still try to use it in a Pipeline job. Jenkins has a snippet generator feature to automatically generate Pipeline code using Freestyle job steps in the web UI. However there is no guarantee that the Pipeline code output by this tool will work identically to the equivalent Freestyle configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.