System properties management

后端 未结 7 2281
面向向阳花
面向向阳花 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:01

    If you run Jenkins on windows as a service without tomcat, you can edit jenkins.xml. Add the property in before the -jar. Than restart the service.

    
        
        -Xrs -Xmx256m  -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle  -Dhudson.tasks.MailSender.SEND_TO_UNKNOWN_USERS=true  -Dhudson.tasks.MailSender.SEND_TO_USERS_WITHOUT_READ=true  -jar "%BASE%\jenkins.war" --httpPort=8080 --webroot="%BASE%\war"
    

提交回复
热议问题