English 中文(简体)
Jenkins 无法将文件复制到窗口远程主机
原标题:Jenkins can t copy files to windows remote host

我在 OS X 10. 7 上有一个 Jenkins 服务器, 该服务器测量颠覆服务器, 建立代码并包设应用程序。 我最后需要完成的一步是在远程主机上部署应用程序, 也就是窗口共享。 请注意, 我的域名账户可以写入目标文件夹, 并安装音量 。 我尝试过使用 shell 脚本构建步骤 :

sudo cp "path/to/app" "/Volumes/path/to/target"

不过我得到了一个"不着急"的响应。我得以在终端运行这个命令,但不能作为詹金斯的建设步骤。

这与启动Jenkins时使用用户有关吗?作为旁注,默认用户是Jenkins, 我的JENKINS_HOME住在/用户/Shared/Jenkins。 如果能帮助我实现这一目标,我将不胜感激。

最佳回答

您的 即时 问题似乎是您在背景中运行 Jenkins, 而 sudo 想要输入密码。 用 $ java - jar Jenkins.war 在前景中运行 Jenkins 。

然而,这很可能无法解决您的问题, 因为命令运行时您会被要求输入密码 - 从您启动 Jenkins 的终端输入密码( 可能不是您想要的 ) 。 您需要找到一种无需根权限即可复制文件的方法 。 一般来说, 在您的建筑中依赖行政权限不是一个好主意( 有例外, 但您的情况并非如此 ) 。

问题回答

暂无回答




相关问题
Elegant way building url request with parameters

There must me a more elegant way to build a URL with parameters in .NET then for example Response.Write("<a href=HeadOfMarketView.aspx"+Session["HOM"] != null ? Session["HOM"]+">Head of Market&...

buildforge problem

when i tried to run the job i am getting the error saying that No server could be found matching all conditions please any one help me on this

您能否防止MSBuild.exe经营活动?

我用文字建造一些项目,偶尔利用习俗制造事件,给建筑系统造成了很大困难。 如果有可能,我想援引MSBuild.exe。

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Keyboard shortcut to build only startup project?

I ve tried to find a keyboard shortcut to build only the startup project In VS2008. I only found a configurable shortcut to build the project which is currently viewed, which isn t as good. Any ...

Dependency bundle (jar-files/sources/API docs) in Eclipse

I m developing various in-house extensions for JIRA, the issue tracker we use. So far I worked with Netbeans and everything worked like a charm. However, now I need to switch to Eclipse and I m ...

How to link to a static library in C?

I use code::blocks to compile my static library. The output result is a libstatic.a file. Now, how do I link to my library to use functions that were compiled? (I tried to use #include "libstatic.a"...

热门标签