0

I want to copy file from different environment in jenkins. Can you please guide me to choose the plugin for copying

3
  • 1
    Can you please expand on what you mean by "different environment in Jenkins"? Are you trying to copy files between agents? Or between predefined environments, as defined by labels or environment variables? Dec 10, 2019 at 9:46
  • copy files between remote desktop servers.
    – user18589
    Dec 11, 2019 at 5:43
  • @user18589 Are these remote desktop servers being used to as Jenkins Agents to run builds on? If they are, then there are ways to copy files between them in Jenkins. If not then you need to use something external to Jenkins like SCP, FTP, etc.
    – Levi
    Apr 24, 2023 at 1:35

1 Answer 1

0

You are probably looking for something like the Config File Provider. Its plugin page describes it as a plugin which:

Adds the ability to provide configuration files (i.e., settings.xml for maven, XML, groovy, custom files, etc.) loaded through the Jenkins UI which will be copied to the job's workspace.

If you need something more like a script (as opposed to the configuration file scenario above), you may be interested in the Managed Script plugin. This allows jobs to consume scripts which are centrally stored and defined by the Jenkins admins:

Managed scripts are shell scripts which are managed centrally by an administrator and can be referenced as a build step within jobs.

If these do not suit your needs, try looking at the Jenkins plugins list

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.