我有一个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发送所有在folder:C:\Jenkins\workspace\Cadastro_Unico_Cliente\CadastroUnico\CadastroUnico中的文件
我在项目配置中放入了...so:
Source files: **/CadastroUnico/CadastroUnico/*
Remove prefix:
Remote directory:
我的期望是指定文件夹中的所有文件都转到配置的FTP地址。
发布于 2020-11-05 09:31:24
只需在源文件中的以下行- \CadastroUnico\CadastroUnico\* and in remove prefix put line - \CadastroUnico\CadastroUnico
并运行构建
https://stackoverflow.com/questions/54522509
复制