System properties management

后端 未结 7 2244
面向向阳花
面向向阳花 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 15:10

    I have the similar problem: I need to disable DNSMultiCast (set hudson.DNSMultiCast.disabled = false) and I can't understand how to do it

    for example, https://wiki.jenkins-ci.org/display/JENKINS/Features+controlled+by+system+properties - there is such advice "...pass all of these arguments before the -jar argument..." but I run jenkins under tomcat so I am not sure I can change startup parameters.

    I tried to change /etc/tomcat6/Catalina/localhost/jenkins.xml to

    <?xml version="1.0" encoding="UTF-8"?>
    <Context >
     <Environment name="JENKINS_HOME" value="/var/jenkins"
             type="java.lang.String" override="false"/>
     <Environment name="hudson.DNSMultiCast.disabled" value="true"
             type="java.lang.Boolean" override="false"/>
    </Context>
    

    but I didn't help. Can someone explain how to change jenkins system properties when tomcat is used.

    0 讨论(0)
提交回复
热议问题