Download files over FTP in a jenkins job?

后端 未结 2 585
生来不讨喜
生来不讨喜 2021-01-18 20:57

It seems that its only possible to upload files over FTP using:

https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+FTP+Plugin

But I need to download a

2条回答
  •  青春惊慌失措
    2021-01-18 21:39

    Maybe the reason is that it is somewhat trivial to download a file during a build using a one-liner like:

    curl -O ftp://server/path/to/file
    

    The curl tool is available for just about any operating system.

    If you only need to download one file over FTP and do not need to check out any other files, you could also use the URL SCM plugin.

提交回复
热议问题