发布工件插件 - 在ArtifactType = FilePath中运行时出现内部错误 [英] Publish Artifact plug-in - internal error when running in ArtifactType=FilePath

查看:102
本文介绍了发布工件插件 - 在ArtifactType = FilePath中运行时出现内部错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




尝试使用ArtifactType = FilePath运行Publish Artifact插件时出现以下错误(参见下文)。有什么想法吗? 


2016-08-16T16:55:32.4456326Z将workingFolder设置为默认值:D:\ tfsagent \tasks \ PubBuiteArtifacts \\\ 1.0.28

2016-08-16T16:55:33.4595871Z ## [debug] check path:D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\task.json

2016-08-16T16:55:33.4595871Z ## [debug]将资源文件设置为:D:\ tfsagent \tasks\PublishBuildArtifacts \1.0.28 \task.json

2016-08-16T16:55:33.4595871Z ## [debug] system.culture = zh-CN

2016-08-16T16:55:33.4595871Z ## [debug]从中加载字符串:D:\tfsagent \tasks \ PublisherBuildArtifacts \1.0.28 \task.json

2016-08-16T16:55:33.4595871Z ## [debug]从以下位置加载loc字符串: D:\tfsagent \tasks \ PublisherBuildArtifacts \1.0.28 \Strings\resources.resjson \ en-US\resources.resjson

2016-08-16T16:55: 33.4751864Z ## [debug] system.hosttype = build

2016-08-16T16:55:33.4751864Z ## [debug] PathtoPublish = d:\_tfs \\\\Staging

2016-08-16T16:55:33.4751864Z ## [debug]检查路径:d:\\ \\ _tfs \\\\Staging

2016-08-16T16:55:33.4751864Z ## [debug] ArtifactName = Drop

2016-08-16T16 :55:33.4751864Z ## [debug] ArtifactType = FilePath

2016-08-16T16:55:33.4751864Z ## [debug] TargetPath =" \\myServer\myShare\ myBuild0.0.01"
$
2016-08-16T16:55:33.4751864Z ## [debug]创建路径:" \ myServer \ myShare \ myBuild0.0.01" \ Drop

2016-08-16T16:55:33.4751864Z shell.js:内部错误

2016-08-16T16:55:33.4751864Z错误:ENOENT:没有这样的文件或目录,mkdir'D:\tfsagent \tasks \ PublisherBuildArtifacts \1.0.28 \"'

2016-08-16T16:55:33.4751864Z   错误(原生)

2016-08-16T16:55:33.4751864Z    at Object.fs.mkdirSync(fs.js:842:18)

2016-08-16T16:55:33.4751864Z    at mkdirSyncRecursive(D:\ tfsagent \tasks\PublishBuildArtifacts\1.0.28 \\\
ode_modules\shelljs\src\mkdir.js:11:8)

2016-08- 16T16:55:33.4751864Z   在mkdirSyncRecursive(D:\ tfsagent \tasks \PublishBuildArtifacts \1.0.28 \\\
ode_modules \ shelljs \ src \mkdir.js:16:3)

2016-08- 16T16:55:33.4751864Z   在mkdirSyncRecursive(D:\ tfsagent \tasks \PublishBuildArtifacts \1.0.28 \\\
ode_modules \ shelljs \ src \mkdir.js:16:3)

2016-08- 16T16:55:33.4751864Z   在mkdirSyncRecursive(D:\ tfsagent \tasks \PublishBuildArtifacts \1.0.28 \\\
ode_modules \ shelljs \ src \mkdir.js:16:3)

2016-08- 16T16:55:33.4751864Z   在mkdirSyncRecursive(D:\ tfsagent \tasks \PublishBuildArtifacts \1.0.28 \\\
ode_modules \ shelljs \ src \mkdir.js:16:3)

2016-08- 16T16:55:33.4751864Z   在D:\ tfsagent \ tasks \ PubBuinArtifacts \\\ 1.0.28 \\\
ode_modules \shelljs \ src \ mkdir.js:63:7

2016-08-16T16:55 :33.4751864Z    at Array.forEach(native)

2016-08-16T16:55:33.4751864Z    at Object._mkdir(D:\ tfsagent \tasks\PublishBuildArtifacts\1.0.28\\\
ode_modules\shelljs\src\mkdir.js:48:8)




解决方案

Hello Colin78,


它看起来像路径问题,我建议你检查在你指定的PATH开头是否有空格。请交叉检查并告诉我们反馈。


问候,



I get the following error when trying to run Publish Artifact plug-in with ArtifactType=FilePath (see below). Any ideas what this is about? 

2016-08-16T16:55:32.4456326Z Set workingFolder to default: D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28
2016-08-16T16:55:33.4595871Z ##[debug]check path : D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\task.json
2016-08-16T16:55:33.4595871Z ##[debug]set resource file to: D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\task.json
2016-08-16T16:55:33.4595871Z ##[debug]system.culture=en-US
2016-08-16T16:55:33.4595871Z ##[debug]load strings from: D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\task.json
2016-08-16T16:55:33.4595871Z ##[debug]load loc strings from: D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\Strings\resources.resjson\en-US\resources.resjson
2016-08-16T16:55:33.4751864Z ##[debug]system.hosttype=build
2016-08-16T16:55:33.4751864Z ##[debug]PathtoPublish=d:\_tfs\3\s\Staging
2016-08-16T16:55:33.4751864Z ##[debug]check path : d:\_tfs\3\s\Staging
2016-08-16T16:55:33.4751864Z ##[debug]ArtifactName=Drop
2016-08-16T16:55:33.4751864Z ##[debug]ArtifactType=FilePath
2016-08-16T16:55:33.4751864Z ##[debug]TargetPath="\\myServer\myShare\myBuild0.0.01"
2016-08-16T16:55:33.4751864Z ##[debug]creating path: "\myServer\myShare\myBuild0.0.01"\Drop
2016-08-16T16:55:33.4751864Z shell.js: internal error
2016-08-16T16:55:33.4751864Z Error: ENOENT: no such file or directory, mkdir 'D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\"'
2016-08-16T16:55:33.4751864Z     at Error (native)
2016-08-16T16:55:33.4751864Z     at Object.fs.mkdirSync (fs.js:842:18)
2016-08-16T16:55:33.4751864Z     at mkdirSyncRecursive (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:11:8)
2016-08-16T16:55:33.4751864Z     at mkdirSyncRecursive (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3)
2016-08-16T16:55:33.4751864Z     at mkdirSyncRecursive (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3)
2016-08-16T16:55:33.4751864Z     at mkdirSyncRecursive (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3)
2016-08-16T16:55:33.4751864Z     at mkdirSyncRecursive (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3)
2016-08-16T16:55:33.4751864Z     at D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:63:7
2016-08-16T16:55:33.4751864Z     at Array.forEach (native)
2016-08-16T16:55:33.4751864Z     at Object._mkdir (D:\tfsagent\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:48:8)

解决方案

Hello Colin78,

It looks to me like path issue, I would suggest you to check is there any empty space in the beginning of the PATH which you are specified. Please cross check and let us know the feedback.

Regards,


这篇关于发布工件插件 - 在ArtifactType = FilePath中运行时出现内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆