无法从詹金斯打开Word文档 [英] Unable to open word document from jenkins

查看:125
本文介绍了无法从詹金斯打开Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows实用程序,用于打开Word文档,从其中提取数据并使用该数据生成另一个Word文档.

I have one windows utility which opens word document, extract data out of it and generate another word document using that data.

现在我的问题是,该Windows exe在命令提示符下可以直接正常运行,但是如果我通过jenkins调用此exe,即构建步骤执行Windows批处理命令",则会出现错误,因此无法打开Word文档,因此实用性存在错误.

Now my problem is that this windows exe is working fine directly on command prompt, but if I call this exe through jenkins, i.e. build step "Execute windows batch command" it gives error, it is not able to open word document so utlity exists with error.

我尝试了其他选项,例如从pom文件和批处理文件调用exe.每当它给我同样的错误.我的tomcat服务与我登录Windows的用户相同.

I have tried other options also like calling exe from pom file, and from batch file. every time it gives me same error. My tomcat service is running with the same user from which I am login to windows.

关于该主题的任何指导都将有所帮助.

Any guidance on this topic will helpful.

推荐答案

C:\Windows\SysWOW64\config\systemprofile\

这解决了问题.

我猜这是用户目录下桌面文件夹用户权限的问题. Tomcat服务运行的用户.

I guess this is problem with user rights for the desktop folder under users directory. The user by which tomcat service is running.

这篇关于无法从詹金斯打开Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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