jenkins文件参数 - 使用作为输入到文件参数时的excel文件会损坏
我有一个参数化的工作,在其中我上传了Excel工作表。
此Excel工作表是我对测试数据将进行一些自动化的步骤的输入。
Excel文件被复制到Jenkins的工作空间,但由于它的损坏而被损坏。
I have a parameterized job, where by I upload an Excel worksheet.
This Excel worksheet is my input to a step where some automation will be done on the test data.
The excel file gets copied to the workspace in jenkins, but is getting corrupted because of which it is does not remain usable or accessbile.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
了解根本原因。
Workspace文件夹仅具有读取访问权限。如果我们将此文件移至Jenkins Workspace之外的某些其他位置,则文件还可以。
我得到了解决文件的解决方案,现在我只读取文件而不是移动文件。
注意:即使我尝试更改文件夹的权限,同样的权限再次出现。
Understood the root cause.
The workspace folder has a read only access. If we move this file to some other location outside of Jenkins workspace, the file is OK.
I got the workaround to access the file, I now only read the file instead of moving it.
Note :Even if I try to change the permissions of the folder, the same permissions again come back.