Preserve Jenkins workspace -


i have jenkins set run concurrent builds, end workspace, workspace@2, workspace@3, etc. if jenkins thinks build finished, new build overwrite workspace. there way of preventing that? e.g. don't overwrite workspace@3 until say. have various scenarios useful.

you archive complete workspace @ end of build. deleted when job deleted.

to this:

  • add post-build action -> "archive artifacts"
  • enter "**" "files archive"

if want make configurable per run, create build parameter:

  • call "archive" of type "choice parameter"
  • with choices being "**" , ""
  • use "${archive}" "files archive" in "advanced" setting of "archive artifacts" action
  • enable checkbox "do not fail build if archiving returns nothing"

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -