Jenkins · Steps and credentials

Pass files between stages or agents

Save files in one stage and restore them in another, even on a different agent.

stash name: 'build', includes: 'dist/**'
// later, in another stage
unstash 'build'

Official Jenkins documentation

More steps and credentials commands

All steps and credentials commands · Jenkins cheatsheet

Was this page helpful?