Discussion:
how to find how a Jenkins instance is installed?
g***@gmail.com
2018-11-14 15:03:44 UTC
Permalink
Hello, how do I find out how a Jenkins instance has been installed?
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6060aa4d-2918-464b-970f-4beed7e9dc9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Victor Martinez
2018-11-14 16:14:38 UTC
Permalink
There are a bunch of different options to install Jenkins based on the OS:
- https://jenkins.io/doc/book/installing/

And on the top those options, there are some configuration management tool
which can help to provisioning Jenkins on any machine, such as
puppet/ansible/chef...

Off the top of my head, it looks like that's something to search in the OS
package log events and see whether there are any entries.

My 2 cents
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/24573a8b-faa3-4056-8e30-3941ddf3756c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Martin d'Anjou
2018-11-15 02:33:19 UTC
Permalink
If you mean how do you test if an instance is ready (after a restart), you
can use curl.

httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."
Post by g***@gmail.com
Hello, how do I find out how a Jenkins instance has been installed?
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Waite
2018-11-15 03:01:52 UTC
Permalink
I thought the question was trying to determine if the Jenkins installation
was done from apt, rpm, MSI, chocolatey, or using a war file. Interesting
the different assumptions we make to a question.

Can the original questioner clarify what they were asking?
Post by Martin d'Anjou
If you mean how do you test if an instance is ready (after a restart), you
can use curl.
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."
Post by g***@gmail.com
Hello, how do I find out how a Jenkins instance has been installed?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG%3DadG4zM9gL7kLOKk4RKEJzAwWg%3DAsbvrydXv1zhDH%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-11-19 14:07:18 UTC
Permalink
I apologize for the delay in responding. Just got chance to check back on
these.

Yes Mark, you are right. I'm trying to determine if Jenkins was installed
from apt/yum, rpm, MSI or war file. Is there a way to find how the
installation was done?
Post by Mark Waite
I thought the question was trying to determine if the Jenkins installation
was done from apt, rpm, MSI, chocolatey, or using a war file. Interesting
the different assumptions we make to a question.
Can the original questioner clarify what they were asking?
Post by Martin d'Anjou
If you mean how do you test if an instance is ready (after a restart),
you can use curl.
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."
Post by g***@gmail.com
Hello, how do I find out how a Jenkins instance has been installed?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Waite
2018-11-19 14:47:50 UTC
Permalink
I'm not aware of any direct method from inside Jenkins that will report how
it was installed. There are differences in the file system layout from the
various installation techniques which could be used to guess which
installer was used.

For example:

- If /etc/default/jenkins exists, then it is likely an 'apt' based
installation (like Debian and Ubuntu)
- If /etc/sysconfig/jenkins exists, then it is likely an 'rpm' based
installation (like Red Hat Enterprise Linux and CentOS)

I don't know the details of installations on macOS, OpenSUSE, FreeBSD,
OpenBSD, AIX, s390x, or OpenIndiana.

Mark Waite
Post by g***@gmail.com
I apologize for the delay in responding. Just got chance to check back on
these.
Yes Mark, you are right. I'm trying to determine if Jenkins was installed
from apt/yum, rpm, MSI or war file. Is there a way to find how the
installation was done?
Post by Mark Waite
I thought the question was trying to determine if the Jenkins
installation was done from apt, rpm, MSI, chocolatey, or using a war file.
Interesting the different assumptions we make to a question.
Can the original questioner clarify what they were asking?
Post by Martin d'Anjou
If you mean how do you test if an instance is ready (after a restart),
you can use curl.
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."
Post by g***@gmail.com
Hello, how do I find out how a Jenkins instance has been installed?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Mudit Kumar
2018-11-19 16:55:06 UTC
Permalink
I would be interested in knowing the details of OS rather than other way around.Same as Mark mentioned.

Thanks,
Mudit Kumar

From: <jenkinsci-***@googlegroups.com> on behalf of Mark Waite <***@gmail.com>
Reply-To: "jenkinsci-***@googlegroups.com" <jenkinsci-***@googlegroups.com>
Date: Monday, 19 November 2018 at 2:48 PM
To: "jenkinsci-***@googlegroups.com" <jenkinsci-***@googlegroups.com>
Subject: Re: how to find how a Jenkins instance is installed?

I'm not aware of any direct method from inside Jenkins that will report how it was installed. There are differences in the file system layout from the various installation techniques which could be used to guess which installer was used.

For example:

* If /etc/default/jenkins exists, then it is likely an 'apt' based installation (like Debian and Ubuntu)
* If /etc/sysconfig/jenkins exists, then it is likely an 'rpm' based installation (like Red Hat Enterprise Linux and CentOS)
I don't know the details of installations on macOS, OpenSUSE, FreeBSD, OpenBSD, AIX, s390x, or OpenIndiana.

Mark Waite

On Mon, Nov 19, 2018 at 7:07 AM <***@gmail.com<mailto:***@gmail.com>> wrote:
I apologize for the delay in responding. Just got chance to check back on these.

Yes Mark, you are right. I'm trying to determine if Jenkins was installed from apt/yum, rpm, MSI or war file. Is there a way to find how the installation was done?

On Wednesday, November 14, 2018 at 10:02:17 PM UTC-5, Mark Waite wrote:
I thought the question was trying to determine if the Jenkins installation was done from apt, rpm, MSI, chocolatey, or using a war file. Interesting the different assumptions we make to a question.

Can the original questioner clarify what they were asking?

On Wed, Nov 14, 2018 at 7:33 PM Martin d'Anjou <***@gmail.com> wrote:
If you mean how do you test if an instance is ready (after a restart), you can use curl.

httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."


On Wednesday, November 14, 2018 at 10:03:44 AM UTC-5, ***@gmail.com wrote:
Hello, how do I find out how a Jenkins instance has been installed?
--
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 jenkinsci-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite
--
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 jenkinsci-users+***@googlegroups.com<mailto:jenkinsci-users+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite
--
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 jenkinsci-users+***@googlegroups.com<mailto:jenkinsci-users+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.





------------------------------------------------------------------------
Disclaimer The information in this email and any attachments may contain proprietary and confidential information that is intended for the addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, retention or use of the contents of this information is prohibited. When addressed to our clients or vendors, any information contained in this e-mail or any attachments is subject to the terms and conditions in any governing contract. If you have received this e-mail in error, please immediately contact the sender and delete the e-mail.
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/F965FBE4-C618-403B-BC28-B97E119AEA92%40publicisgroupe.net.
For more options, visit https://groups.google.com/d/optout.
g***@gmail.com
2018-11-19 17:26:59 UTC
Permalink
Thanks a lot @Mark for the info. We are using CentOS. Will there be a
difference between yum install and downloading a previous version and
installing it manually? Also, how to find if the installation is done from
LTS or Stable version? From OS.
Post by Mudit Kumar
I would be interested in knowing the details of OS rather than other way
around.Same as Mark mentioned.
Thanks,
Mudit Kumar
*Date: *Monday, 19 November 2018 at 2:48 PM
*Subject: *Re: how to find how a Jenkins instance is installed?
I'm not aware of any direct method from inside Jenkins that will report
how it was installed. There are differences in the file system layout from
the various installation techniques which could be used to guess which
installer was used.
- If /etc/default/jenkins exists, then it is likely an 'apt' based
installation (like Debian and Ubuntu)
- If /etc/sysconfig/jenkins exists, then it is likely an 'rpm' based
installation (like Red Hat Enterprise Linux and CentOS)
I don't know the details of installations on macOS, OpenSUSE, FreeBSD,
OpenBSD, AIX, s390x, or OpenIndiana.
Mark Waite
I apologize for the delay in responding. Just got chance to check back on these.
Yes Mark, you are right. I'm trying to determine if Jenkins was installed
from apt/yum, rpm, MSI or war file. Is there a way to find how the
installation was done?
I thought the question was trying to determine if the Jenkins installation
was done from apt, rpm, MSI, chocolatey, or using a war file. Interesting
the different assumptions we make to a question.
Can the original questioner clarify what they were asking?
If you mean how do you test if an instance is ready (after a restart), you can use curl.
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
while [[ $httpCode != "200" ]]; do
sleep 5
httpCode=$(curl -s -w "%{http_code}" -X GET $JENKINS_URL)
done
echo "Jenkins is ready."
Hello, how do I find out how a Jenkins instance has been installed?
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/70b0817f-aa60-42cc-bd83-713742c305aa%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/d1f4d4b2-5f77-49f1-afe7-20a06aa503dc%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
Thanks!
Mark Waite
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtESgfqu5dgvvCsZiWdgQMsrtoEbsHrDEiK2xJCN--3MvA%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
------------------------------------------------------------------------
Disclaimer The information in this email and any attachments may contain
proprietary and confidential information that is intended for the
addressee(s) only. If you are not the intended recipient, you are hereby
notified that any disclosure, copying, distribution, retention or use of
the contents of this information is prohibited. When addressed to our
clients or vendors, any information contained in this e-mail or any
attachments is subject to the terms and conditions in any governing
contract. If you have received this e-mail in error, please immediately
contact the sender and delete the e-mail.
--
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 jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f5030914-e905-4114-addb-e825efc25bb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...