System properties management

后端 未结 7 2283
面向向阳花
面向向阳花 2020-12-05 14:11

Is there any \"adequate\" way to change system properties in Jenkins? What is the easiest/fastest way change them? For instance, I need to turn off the useless (in my case)

7条回答
  •  醉酒成梦
    2020-12-05 14:59

    Maybe it's a bad hack but I set it in the pipeline job that needs the setting.
    Like this:

    System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")  // allow formatted HTML pages to be published
    

    It seems to work - as far as I can tell...

提交回复
热议问题