Publish Maven artifacts on FTP with Hudson FTP Publisher Plugin

Posted by jaguard on Stack Overflow See other posts from Stack Overflow or by jaguard
Published on 2010-04-14T14:31:15Z Indexed on 2010/04/14 14:33 UTC
Read the original article Hit count: 454

Filed under:
|
|
|

I'm building a number of artefacts (zip files for different environments: test, dev) using the maven-assembly-plugin using a specialized Maven profile. These artefacts I want to copy/collect on on a FTP server keeping the version (01.07.10.16.Wed-1626) as a folder, so I need to copy from test/build/01.07.10.16.Wed-1626/ to ftp://my-ftp-server:21/projects/myserver-1.7/01.07.10.16.Wed-1626/

The layout for the Maven output is this:

target/
  build/
    01.07.10.16.Wed-1626/
      my-server-01.07.10.16.Wed-1626-dev.zip 
      my-server-01.07.10.16.Wed-1626-test.zip 

For copying the artefacts I'm using FTP Publisher Plugin but it seams I miss something since that even the build is OK and the artefacts are build without problem but the job is finishing without copying the artefacts, and in the console there is no log info about copying the artefacts

My FTP publisher config (FTP repository hosts) is:

Hostname: my-ftp-server
Port: 21
Timeout: 10000
Root Repository Path: projects
User Name: my-user
Password: my-pass

My Hudson job FTP publisher config (Publish artifacts to FTP) is:

FTP site: my-ftp-server
Files to upload
    Source: target/build/**
    Destination: myserver-1.7

1: There is any log to check if there are any FTP copy errors ? 2: There is any problem with the file pattern (source) or with the dest ?

© Stack Overflow or respective owner

Related posts about hudson

Related posts about ftp