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

Hudson Post Build Action - Deploy via Maven doesn't support FTP or SSH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Hudson 1.339 deployed on Tomcat 6.0.20 in Windows Server 2003; Sun JDK 1.6.0_13 with Apache Maven 2.0.10.

      I have setup a job that executes "mvn install" periodically. I have decided to let Hudson handle my artifact deployment after a full successful build by choosing option "Deploy artifacts to Maven repository" under Post-Build Actions. My method of deployment is FTP since my remote Maven repo only allows FTP clients. When I execute a build the build succeeds but deployment fails. Hudson stacktrace reports "Unsupported Protocol: ftp".

      I found this information on Apache Maven FAQ that helped me resolve it. I initially thought Hudson was going to execute all Maven actions through my Maven installation but it appears for this setting it executes its own Maven env which after checking did not bundle FTP or SSH support. SCP was supported out of the box.

      FAQ: http://maven.apache.org/plugins/maven-deploy-plugin/faq.html

      Checking under this direcotry I did not see any Maven FTP or SSH support. I followed the Apache Maven FAQ instructions and dropped "wagon-ftp-1.0-beta-2.jar" and "commons-net-ftp-2.0.jar" here and restarted Hudson. After this step I was able to successfully push artifacts into my remote repository.

      <HUDSON_ENV_FOR_MY_BUILDS>/plugins/maven-plugin/WEB-INF/lib

      Solution:
      Bundle the necessary Maven plugins to support all transport protocols for artifact deployment that Maven currently supports via the Wagon plugin:
      http://maven.apache.org/wagon/

      At a minimum the Help documentation should say what is supported since it was not clear at all what transports were supported until I executed each one.

      Thanks

            Unassigned Unassigned
            jmohseni jmohseni
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: