我试图用ssh出版商通过詹金斯发表文物到远程服务器。
<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>
然而,当我试图发表,我有以下错误
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)
....
所以我设置了DISPLAY变量远程用户的.bash_profile中,我都尝试
export DISPLAY=:0.0
export DISPLAY=<jenkin.server.ip>:0.0
但他们没有工作。 可能有人阐明我的灯光如何来解决这一问题? 谢谢!