常春藤ssh出版商 [英] ivy ssh publisher

查看:172
本文介绍了常春藤ssh出版商的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用ssh发布器通过jenkins将工件发布到远程服务器.

I am trying to use ssh publisher to publish artifacts to a remote server through jenkins.

<ssh name="ssh-publisher" host="myhost.com" user="dummy" keyFile="/home/dummy/id_rsa">
   <ivy pattern="/data/refdata/local0/artifacts[organisation]/[module]/[revision]/ivy-[revision].xml"/>
   <artifact pattern="/data/refdata/local0/artifacts/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
</ssh>

但是,当我尝试发布时,出现以下错误

However when I tried to publish, I got the following error

impossible to publish artifacts for <my.artifacts>;<my.version>: java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
    at java.awt.Window.<init>(Window.java:407)
    at java.awt.Frame.<init>(Frame.java:402)
    at java.awt.Frame.<init>(Frame.java:367)
    at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1731)
....

所以我在远程用户的bash_profile中设置了DISPLAY变量,我都尝试了

So I set the DISPLAY variable in the bash_profile of the remote user, I tried both

export DISPLAY=:0.0
export DISPLAY=<jenkin.server.ip>:0.0

但是它们都不起作用.有人可以照亮我如何解决这个问题吗?谢谢!

But none of them works. Could someone shed lights on me how to work this out? Thanks!

推荐答案

我认为Ivy试图提示您输入密码,但由于Jenkins无头运行,因此无法这样做.检查您的密钥文件.

I think Ivy is trying to prompt you to enter a password but since Jenkins is running headless, it cannot do so. Check your keyfile.

这篇关于常春藤ssh出版商的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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