在Jenkins中通过FTP发布不发送文件

时间:2019-02-04 18:50:11

标签: jenkins ftp publish

我有一个C#应用程序,正在尝试通过“通过FTP发布”插件进行发布,但是文件没有用。

    FTP: Connecting from host [STAFF01]
    FTP: Connecting with configuration [FTP de TESTE (CadastroUnicoteste)]   ...
   FTP: Disconnecting configuration [FTP de TESTE (CadastroUnico teste)] ...
   FTP: Transferred 0 file(s)
   Finished: SUCCESS

如果您按照论坛其他地方的建议更改语法,则错误将更改为:

    Tempo Decorrido 00:00:20.94
FTP: Connecting from host [STAFF01]
FTP: Connecting with configuration [FTP de TESTE (CadastroUnico teste)] ...
FTP: Disconnecting configuration [FTP de TESTE (CadastroUnico teste)] ...
ERROR: Exception when publishing, exception message [Exception when changing to FTP directory [CadastroUnico/CadastroUnico.Classes/Aplicacao]]
Build step 'Send build artifacts over FTP' changed build result to UNSTABLE
Finished: UNSTABLE

在系统配置(全局配置)下,我测试了FTP地址,没关系!

我需要通过ftp发送以下文件夹中的所有文件:C:\ Jenkins \ workspace \ Cadastro_Unico_Cliente \ CadastroUnico \ CadastroUnico

...所以在项目配置中,我输入:

Source files: **/CadastroUnico/CadastroUnico/*
Remove prefix: 
Remote directory:

我希望指定文件夹中的所有文件都转到配置的FTP地址。

1 个答案:

答案 0 :(得分:0)

只需将其放在源文件的下面-\CadastroUnico\CadastroUnico\* and in remove prefix put line - \CadastroUnico\CadastroUnico

并运行构建