Specifying Jenkins startup parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Specifying Jenkins startup parameters

David Aldrich-2

Hi

 

We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter:

 

java -jar jenkins.war --sessionTimeout=10080

 

How do people typically specify startup parameters?  Should I use a script and never restart from the root menu?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Specifying Jenkins startup parameters

Mark Waite-2
It depends on the context where you're running that server.  Refer to https://jenkins.io/download/ for the current list of platform specific installers and the instructions to use them.

If you're running on a Debian or Ubuntu server, you should be able to modify the command line arguments in /etc/defaults/jenkins.  See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu for more details.

If you're running on a CentOS, Red Hat or OpenSUSE, you should be able to modify the command line arguments in /etc/sysconfig/jenkins.  See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions 

If you're running on Windows, there is a configuration file written to the installation directory which can be changed.  See https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer 

Mark Waite

On Fri, Nov 10, 2017 at 5:12 AM David Aldrich <[hidden email]> wrote:

Hi

 

We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter:

 

java -jar jenkins.war --sessionTimeout=10080

 

How do people typically specify startup parameters?  Should I use a script and never restart from the root menu?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFHtUzVERC_C_WB9Pt4rJvwMTOvMeEh4kbwdMkuZNYP7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Specifying Jenkins startup parameters

David Aldrich-2

Hi Mark

 

Thanks for your reply.  I’m working on Centos 5, so I set the last line of /etc/sysconfig/jenkins to:

 

JENKINS_ARGS="--prefix=/jenkins --sessionTimeout=540"

 

I then restarted Jenkins using root menu > Restart Safely.  After ~30mins inactivity I had to log in to Jenkins again.

 

Do you have any ideas why this is not working for me please?

 

Best regards

 

David

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Waite
Sent: 14 November 2017 01:47
To: [hidden email]
Subject: Re: Specifying Jenkins startup parameters

 

It depends on the context where you're running that server.  Refer to https://jenkins.io/download/ for the current list of platform specific installers and the instructions to use them.

 

If you're running on a Debian or Ubuntu server, you should be able to modify the command line arguments in /etc/defaults/jenkins.  See <a href="https://wiki.jenkins.io/display/JENKINS/Installing&#43;Jenkins&#43;on&#43;Ubuntu">https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu for more details.

 

If you're running on a CentOS, Red Hat or OpenSUSE, you should be able to modify the command line arguments in /etc/sysconfig/jenkins.  See <a href="https://wiki.jenkins.io/display/JENKINS/Installing&#43;Jenkins&#43;on&#43;Red&#43;Hat&#43;distributions">https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions 

 

If you're running on Windows, there is a configuration file written to the installation directory which can be changed.  See <a href="https://wiki.jenkins.io/display/JENKINS/Thanks&#43;for&#43;using&#43;Windows&#43;Installer">https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer 

 

Mark Waite

 

On Fri, Nov 10, 2017 at 5:12 AM David Aldrich <[hidden email]> wrote:

Hi

 

We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter:

 

java -jar jenkins.war --sessionTimeout=10080

 

How do people typically specify startup parameters?  Should I use a script and never restart from the root menu?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFHtUzVERC_C_WB9Pt4rJvwMTOvMeEh4kbwdMkuZNYP7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Click here to report this email as spam.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34b9200f307646919eb57c52c6ca735e%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Specifying Jenkins startup parameters

Mark Waite-2

I believe the safe restart does not execute the operating system level startup scripts.  You need the operating system level restart,  like /etc/init.d/jenkins restart.

Mark Waite


On Tue, Nov 14, 2017, 2:46 AM David Aldrich <[hidden email]> wrote:

Hi Mark

 

Thanks for your reply.  I’m working on Centos 5, so I set the last line of /etc/sysconfig/jenkins to:

 

JENKINS_ARGS="--prefix=/jenkins --sessionTimeout=540"

 

I then restarted Jenkins using root menu > Restart Safely.  After ~30mins inactivity I had to log in to Jenkins again.

 

Do you have any ideas why this is not working for me please?

 

Best regards

 

David

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Waite
Sent: 14 November 2017 01:47
To: [hidden email]
Subject: Re: Specifying Jenkins startup parameters

 

It depends on the context where you're running that server.  Refer to https://jenkins.io/download/ for the current list of platform specific installers and the instructions to use them.

 

If you're running on a Debian or Ubuntu server, you should be able to modify the command line arguments in /etc/defaults/jenkins.  See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu for more details.

 

If you're running on a CentOS, Red Hat or OpenSUSE, you should be able to modify the command line arguments in /etc/sysconfig/jenkins.  See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions 

 

If you're running on Windows, there is a configuration file written to the installation directory which can be changed.  See https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer 

 

Mark Waite

 

On Fri, Nov 10, 2017 at 5:12 AM David Aldrich <[hidden email]> wrote:

Hi

 

We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter:

 

java -jar jenkins.war --sessionTimeout=10080

 

How do people typically specify startup parameters?  Should I use a script and never restart from the root menu?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].


For more options, visit https://groups.google.com/d/optout.

Click here to report this email as spam.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34b9200f307646919eb57c52c6ca735e%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFcezkciKYbg-HmpJiXndu0OOM8oW%3DHUbLOHoAW1m1Ryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: Specifying Jenkins startup parameters

David Aldrich-2

Ok, thanks Mark.

 

David

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Waite
Sent: 14 November 2017 11:47
To: [hidden email]
Subject: Re: Specifying Jenkins startup parameters

 

I believe the safe restart does not execute the operating system level startup scripts.  You need the operating system level restart,  like /etc/init.d/jenkins restart.

Mark Waite

 

On Tue, Nov 14, 2017, 2:46 AM David Aldrich <[hidden email]> wrote:

Hi Mark

 

Thanks for your reply.  I’m working on Centos 5, so I set the last line of /etc/sysconfig/jenkins to:

 

JENKINS_ARGS="--prefix=/jenkins --sessionTimeout=540"

 

I then restarted Jenkins using root menu > Restart Safely.  After ~30mins inactivity I had to log in to Jenkins again.

 

Do you have any ideas why this is not working for me please?

 

Best regards

 

David

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Mark Waite
Sent: 14 November 2017 01:47
To: [hidden email]
Subject: Re: Specifying Jenkins startup parameters

 

It depends on the context where you're running that server.  Refer to https://jenkins.io/download/ for the current list of platform specific installers and the instructions to use them.

 

If you're running on a Debian or Ubuntu server, you should be able to modify the command line arguments in /etc/defaults/jenkins.  See <a href="https://wiki.jenkins.io/display/JENKINS/Installing&#43;Jenkins&#43;on&#43;Ubuntu" target="_blank">https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu for more details.

 

If you're running on a CentOS, Red Hat or OpenSUSE, you should be able to modify the command line arguments in /etc/sysconfig/jenkins.  See <a href="https://wiki.jenkins.io/display/JENKINS/Installing&#43;Jenkins&#43;on&#43;Red&#43;Hat&#43;distributions" target="_blank">https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions 

 

If you're running on Windows, there is a configuration file written to the installation directory which can be changed.  See <a href="https://wiki.jenkins.io/display/JENKINS/Thanks&#43;for&#43;using&#43;Windows&#43;Installer" target="_blank">https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer 

 

Mark Waite

 

On Fri, Nov 10, 2017 at 5:12 AM David Aldrich <[hidden email]> wrote:

Hi

 

We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter:

 

java -jar jenkins.war --sessionTimeout=10080

 

How do people typically specify startup parameters?  Should I use a script and never restart from the root menu?

 

Best regards

 

David

 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].


For more options, visit https://groups.google.com/d/optout.

Click here to report this email as spam.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34b9200f307646919eb57c52c6ca735e%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFcezkciKYbg-HmpJiXndu0OOM8oW%3DHUbLOHoAW1m1Ryg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/41def92e68d2444abe934f3fec980bb4%40EUX13SRV1.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.