Preserve Jenkins workspace
问题 I have Jenkins set up to run concurrent builds, so I end up with workspace, workspace@2, workspace@3, etc. If Jenkins thinks the build is finished, a new build will overwrite the workspace. Is there a way of occasionally preventing that? E.g. Don't overwrite workspace@3 until I say. We have various scenarios where this would be very useful. 回答1: You could simply archive the complete workspace at the end of a build. It would then get deleted when the job is deleted. To do this: Add post-build