Issue
I am researching ways to migrate jobs from one Jenkins instance to another. Unfortunately, no solution has worked from start to finish.
One solution has involved the use of the Jenkins Job Import Plugin. The trouble with this is that I can find zero documentation on it. At the plugin site, there is only a change log.
Does anyone have any information on how to use this plugin?
It has only two fields, Jenkins Server and Remote Folder. One thing I have tried is to set up the Jenkins Server and then include the job name in the latter field. The result of this is . . . no result. The browser just does its loading thing for awhile before returning to the same page. Ditto if I include the path to the job on the server (/var/lib/Jenkins/jobs . . .) in the latter field. I can put gibberish in the second field and get the same result, without any feedback whatsoever.
Looking in the developer tools of my browser, I see a POST request to [JenkinsEndpoint]:8080/JobImport/query, with no parameters that returns 200 no matter what. (Return result is the html of the same page I was just on.)
Solution
I too had a similar requirement, and usually we will just copy the job config as stated here - https://wiki.jenkins.io/display/JENKINS/Administering+Jenkins
Answered By - Ashokekumar S