0

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

2
  • 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 9:46
  • copy files between remote desktop servers. – user18589 Dec 11 '19 at 5:43
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, privacy policy and cookie policy

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