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

Maven Site site:deploy fails because of SCP command

XMLWordPrintable

    • 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

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

              Created:
              Updated:
              Resolved: