Where to set the System Properties in Jenkins?

11,396

These are regular JVM system properties. Pass them using -Denkins.ec2.bootstrapAuthSleepMs=value and -Djenkins.ec2.bootstrapAuthTries=value on Jenkins startup. You need to edit the Jenkins configuration/startup script on disk and restart Jenkins to apply the changes.

In most Jenkins installations, this is the "JAVA_ARGS" variable in the Jenkins config or startup script. On ubuntu/debian, this is configured in /etc/default/jenkins.

Share:
11,396
Andra
Author by

Andra

Updated on June 14, 2022

Comments

  • Andra
    Andra almost 2 years

    I am exploring the EC2 plugin of Jenkins. One of the issues reported is with the Authentication Timeout.

    jenkins.ec2.bootstrapAuthSleepMs (default 30000)
    jenkins.ec2.bootstrapAuthTries (default 30)
    

    I am seeing this issue with my install and I am trying to set the properties accordingly. So far without any success. Where do you increase the default timeout values for a jenkins install as suggested on the Install page?

  • andrew lorien
    andrew lorien over 7 years
    In Jenkins 2.7.1 on CentOS the file is /etc/sysconfig/jenkins and the variable is JENKINS_JAVA_OPTIONS
  • vikramvi
    vikramvi about 6 years
    I don't find sysconfig under /etc in Ubuntu 16.04, where does this exists ?