首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Jenkins中通过FTP发布不发送文件

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

Stack Overflow用户
提问于 2019-02-05 02:50:11
回答 1查看 1.2K关注 0票数 0

我有一个C#应用程序,并试图通过通过FTP发布插件发布,但文件不能运行。

代码语言:javascript
运行
复制
    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

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

代码语言:javascript
运行
复制
    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:

代码语言:javascript
运行
复制
Source files: **/CadastroUnico/CadastroUnico/*
Remove prefix: 
Remote directory:

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

EN

回答 1

Stack Overflow用户

发布于 2020-11-05 17:31:24

只需在源文件中的以下行- \CadastroUnico\CadastroUnico\* and in remove prefix put line - \CadastroUnico\CadastroUnico

并运行构建

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54522509

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档