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 <[email protected]> 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 <[email protected]>
>> 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, [email protected]
>>> 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 [email protected].
>>> 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 [email protected].
> 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 [email protected].
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.

Reply via email to