Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-51746

Job Import Plugin does not import jobs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: job-import-plugin
    • Labels:
    • Environment:
      Jenkins Version:2.125
      Plugin Version:3.0
      OS: RHEL 7
      Remote Jenkins Version:2.107.3
      Remote Jenkins OS:Windows Server 2008
    • Similar Issues:

      Description

      Hi Team,

      I have configured the Remote Jenkins URL under the Job Import Plugin section.

      I gave the server name, URL and also the Admin credentials.

      When I tried to import the jobs from the remote jenkins, which means when I give the "Query" option (That's the only option available) it is not importing any jobs and the page just gets refreshed.

      Is my understanding is wrong or am I missing something or this plugin does not support Windows to RHEL jobs import or is this an existing bug.

      I don't find any traces in the jenkins logs as well.

      Can anyone help me

        Attachments

          Activity

          Hide
          escoem Emilio Escobar added a comment -

          can you please grab the jenkins.log just after trying to import the job and upload to the jira?

          Show
          escoem Emilio Escobar added a comment - can you please grab the jenkins.log just after trying to import the job and upload to the jira?
          Hide
          vektory79 Victor Verbitsky added a comment -

          Same here. But no any logs is apeared during operation.

          Client Jenkins  version: 2.150.3

          Remote Jenkins version: 2.150.1

          Job Import Plugin: 3.1

          Show
          vektory79 Victor Verbitsky added a comment - Same here. But no any logs is apeared during operation. Client Jenkins  version: 2.150.3 Remote Jenkins version: 2.150.1 Job Import Plugin: 3.1
          Hide
          msymons Mark Symons added a comment - - edited

          I ran into exactly this problem today with plugin v3.2... when trying to actually use the plugin, the page would just refresh (without displaying an error) whenever "query!" was clicked.

          For me, the problem turned out to be with credentials... the correct permissions had not been set up on the remote Jenkins server.

          I have logged an enhancement JENKINS-56908 to "Provide a "Test Connection" button to plugin configuration"

          Show
          msymons Mark Symons added a comment - - edited I ran into exactly this problem today with plugin v3.2... when trying to actually use the plugin, the page would just refresh (without displaying an error) whenever "query!" was clicked. For me, the problem turned out to be with credentials... the correct permissions had not been set up on the remote Jenkins server. I have logged an enhancement JENKINS-56908 to "Provide a "Test Connection" button to plugin configuration"
          Hide
          kabbottcc Kim Abbott added a comment - - edited

          Mark, what permissions did you need to add on the remote Jenkins? A colleague was attempting to use this plugin and was having same issue (nothing happened, no logs). I discovered that she had not been using the right credentials in the host Jenkins configuration.  Once I fixed that, it finally started logging, but now I'm getting one of 2 errors, either: 

          {{I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://<remote-server>:8080: No route to host (Host unreachable)
          May 10, 2019 11:51:18 PM INFO org.apache.http.impl.execchain.RetryExec execute
          Retrying request to {}->http://<remote-server>:8080
          May 10, 2019 11:51:18 PM SEVERE org.jenkins.ci.plugins.jobimport.client.RestApiClient getRemoteItems
          Failed to list job from remote http://<remote-server>:8080/
          java.net.NoRouteToHostException: No route to host (Host unreachable)}}

          With a long stack trace, or:

          {{Failed to list job from remote /
          java.net.MalformedURLException: no protocol: /api/xml?tree=jobs[name,url,description]}}

          With a long stack trace.

          I can ping the remote from the host, so I know it can "see" it.

          Show
          kabbottcc Kim Abbott added a comment - - edited Mark, what permissions did you need to add on the remote Jenkins? A colleague was attempting to use this plugin and was having same issue (nothing happened, no logs). I discovered that she had not been using the right credentials in the host Jenkins configuration.  Once I fixed that, it finally started logging, but now I'm getting one of 2 errors, either:  {{I/O exception (java.net.NoRouteToHostException) caught when processing request to {}->http://<remote-server>:8080: No route to host (Host unreachable) May 10, 2019 11:51:18 PM INFO org.apache.http.impl.execchain.RetryExec execute Retrying request to {}->http://<remote-server>:8080 May 10, 2019 11:51:18 PM SEVERE org.jenkins.ci.plugins.jobimport.client.RestApiClient getRemoteItems Failed to list job from remote http://<remote-server>:8080/ java.net.NoRouteToHostException: No route to host (Host unreachable)}} With a long stack trace, or: {{Failed to list job from remote / java.net.MalformedURLException: no protocol: /api/xml?tree=jobs [name,url,description] }} With a long stack trace. I can ping the remote from the host, so I know it can "see" it.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sarjunkumar Arjunkumar Selvamani
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: