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

Maven Site site:deploy fails because of SCP command

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: Linux

      We're using Hudson 1.149 and the Hudson Maven2 Project support.

      When we execute the maven command "mvn clean deploy site site:deploy" from the
      command line, everything works fine.

      However, if we do the same thing in Hudson then the SCP fails when deploying the
      site. Here is the Hudson/Maven output from the console.

      [INFO] [site:deploy]
      [HUDSON] Archiving
      /home/administrator/.hudson/jobs/TAUtilities_1.2_DEV/workspace/pom.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Unsupported protocol: 'scp'

      Embedded error: Cannot find wagon which supports the requested protocol: scp
      Component composition failed. No field of type: 'interface
      org.apache.maven.wagon.providers.ssh.knownhost.KnownHostsProvider' exists in
      class 'org.apache.maven.wagon.providers.ssh.jsch.ScpWagon'. Component: role:
      'org.apache.maven.wagon.Wagon', implementation:
      'org.apache.maven.wagon.providers.ssh.jsch.ScpWagon', role hint: 'scp'
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 2 minutes 57 seconds
      [INFO] Finished at: Tue Nov 20 09:00:29 MST 2007
      [INFO] Final Memory: 50M/93M
      [INFO] ------------------------------------------------------------------------
      finished: FAILURE

          [JENKINS-1023] Maven Site site:deploy fails because of SCP command

          brentryan created issue -
          Kohsuke Kawaguchi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          brentryan made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Kohsuke Kawaguchi made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Kohsuke Kawaguchi made changes -
          Link New: This issue duplicates JENKINS-1102 [ JENKINS-1102 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 131096 ] New: JNJira + In-Review [ 200372 ]

            Unassigned Unassigned
            brentryan brentryan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: