更新jenkins插件,报错 Perhaps you need to run your container with "-Djava.awt.headless=true"?

Configuring the Java environment variables

vi ~/.bash_profile

  在最后一行加入:

export  JAVA_OPTS=-Djava.awt.headless=true

  使用最新环境变量

source ~/.bash_profile

  

posted @ 2017-12-05 14:38  YatHo  Views(1184)  Comments(0)    收藏  举报