How to use job import plugin in jenkins
I don't have access to both servers so cli is not an option only jenkins ui is available. I need to import jobs using job import plugin but i am unable to figure how to configure the plugin so as to import jobs. Could anyone please help me with this.
To configure the Jenkins Remote Plugin, you need to add a Jenkins Server to import your jobs.
Setting a Jenkins Server
To add a Jenkins Server, you need to go on your Jenkins configuration: Manage Jenkins
> Configure System
> Job Import Plugin
or http://jenkins-host:port/configure
and add the Url and credentials to the host from where will import the jobs.
If you don't have, will need to add the credentials to this server, to do this click on the option Add bellow the Url settings.
Using the Jenkins Import plugin
After setting a Jenkins server, you will be able to use the Jenkins Import plugin by going to option Job Import Plugin
in the Jenkins home or going to the URL: http://jenkins-host:port/Job-import/
or http://jenkins-host:port/job-import/
in the new versions.
If you added only a Jenkins Server it will be selected as default, otherwise, the correct Jenkins server will need to be selected:
Normally you don't need to set the Remote folder or Search into folders options, so if you use the default Jenkins settings, leave these fields blank.
Then, you will click on the Query! button, to start your import. A page with all jobs available to be imported will be showed.
You will need to select all the jobs you want to import one by one, if you have many jobs (like in my case) this can be a little boring. A good idea is to select the Install required plugins option too.
After select everything, you can click on the Import! button to finally starts your import.