| I am using the kubernetes plugin to dynamically create slaves on a k8s cluster. When there are concurrent builds are running of a specific job, they are both using the same workspace which causes all sorts of issues. For example, if I have some cleanUp in my Jenkinsfile, and there are 2 concurrent builds running, if the build 1 finishes first and runs cleanWs(), it deletes everything from that Workspace. Since build 2 is also using the same workspace, build 2 also fails because it lost everything in its workspace ( because they were both using the same workspace ). This behavior is not correct and it should match the native jenkins behavior when using static slaves. |