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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -