How can I copy jobs from one folder to another?

Issue

I’m trying to copy jobs from one folder to another. I can’t find a way to do that.

Environment

  • CloudBees Jenkins Enterprise
  • Folders
  • Folders Plus

Resolution

To move folders you need either Folders or Folders Plus installed.

Let’s say I have two folders: my-folder and my-folder-2 and have a Jenkins job under my-folder/my-job. If would like to move this job from one location to another one, just need to click in the dropdown menu that you can see below and click on move option.

Have more questions? Submit a request

8 Comments

  • 0
    Avatar
    Bleacher Report

    No Screenshot found.....

  • 0
    Avatar
    Michael New

    It would be good if this were answered.  I see other questions on the internet but the version of jenkins is different and the options available are different.

  • 0
    Avatar
    Arnaud Heritier

    Michael I fixed the screenshot. Does it helps more ? What would we improve ?

  • 0
    Avatar
    Michael New

    It helps, but the move functionality did not work in my case...

  • 0
    Avatar
    James Brown

    Hi Michael, I've just created a ticket for us to follow up with our engineers. You should be receiving an email momentarily. 

  • 0
    Avatar
    Steven Christenson

    The question was how to "copy" not "move". So unless "move" is really a copy... then this doesn't answer the question.  However. the missing bit of information is that the pulldown is "Move/Copy/Promote" and once you get the target named, you have three options "Move", "Copy" and "Promote".  I tried this using Jenkins operation center and it ... Worked though it took a long time.  Apparently it first analyzes the job to see if the plugins on the from are compatible with the "To". Then it took a very long time to transfer.  Perhaps because it also copies all the build results.
    Above is the set up to copy from one of our Jenkins to another in the Jenkins Operation Center.




  • 0
    Avatar
    Satender Ruhil

    Hi Steven Christenson,

        I am facing issues in copying a job from 1 Jenkins instance(1.64) to another Jenkins instance(2.4). The Job is copied but some of the configurations like SCM configuration, gerrit event configuration are not present. Even shell commands are missing. Is it Jenkins Version which is preventing it from reading job of older Jenkins ??

  • 0
    Avatar
    Denys Digtiar

    Hi, Satender,

    The first thing to check is that target master has all the plugins that are required for the project or simply all the same plugins that source master has.

    If you are a CloudBees customer, feel free to raise a support ticket.

Please sign in to leave a comment.