MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Copy a files from jenkins server to jenkins node/slave using pipeline plugins

DevOpsSchool banner: Copy files from Jenkins server to Jenkins node using pipeline plugins

Workarond 1 – Try to use stash/unstash, but it is bad for large files.

[code]node(‘master’) {
dir(‘/path/on/master/1’) {
stash ‘master-stuff’
}
}
node(‘slave’) {
dir(‘/path/on/slave/1’) {
unstash ‘master-stuff’
}
dir(‘/path/on/slave/2’) {
stash ‘slave-stuff’
}
}
node(‘master’) {
dir(‘/path/on/master/2’) {
unstash ‘slave-stuff’
}
} [/code]

Read more about stash & unstash
https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#stash-stash-some-files-to-be-used-later-in-the-build
https://jenkins.io/doc/pipeline/examples/#unstash-different-dir

Workaround 2 – Try External Workspace Manager Plugin. It has pipelines steps and is good for large files.

Workaround 3 – Try to use intermediate storage. archive() and sh(“wget $url”) will be helpful.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Jenkins Troubleshooting Guide: Fast Triage, Log Analysis, and Common Failure Fixes

A practical Jenkins troubleshooting guide for DevOps teams: find the right logs first, separate controller vs. agent vs. job failures, and resolve common outage patterns quickly.

Read More

Top Jenkins interview questions and answers

1. What is Jenkins? Jenkins is an open-source automation server that helps automate various aspects of software development, such as building, testing, and deploying code. It allows…

Read More

Jenkins interview questions on requirements, components, plugins

What is a basic requirement for using Jenkins? To use Jenkins you require: A source code repository that is accessible, for instance, a Git repository. A working build…

Read More

Jenkins Pipeline code for Sending an email on Build Failure

To get an email when a Jenkins build fails, call the mail step (Mailer plugin) or the emailext step (Email Extension plugin) inside the post { failure…

Read More

Jenkins Tutorials: Meaning of $class in scripted pipeline

In a Jenkins Pipeline, $class is a special map key that tells Jenkins which plugin or core class to create when a step or property accepts more…

Read More

Automating Jenkins Job Configuration: Job DSL, Multibranch, Job Generator, and JJB

Manually creating many Jenkins jobs is slow and error-prone. This guide compares the main automation options and shows practical jobs-as-code examples for repeatable setup.

Read More