0

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

user18589
  • 1
  • 1
  • 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? – Bruce Becker Dec 10 '19 at 09:46
  • copy files between remote desktop servers. – user18589 Dec 11 '19 at 05: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 '23 at 01:35

1 Answers1

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

Bruce Becker
  • 3,573
  • 4
  • 19
  • 40