更新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

  

原文地址:https://www.cnblogs.com/YatHo/p/7986851.html