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