How to setup jenkins in production machine manually which is running Ubuntu 12.04?

118 views
Skip to first unread message

compte...@gmail.com

unread,
Mar 30, 2015, 6:16:08 PM3/30/15
to jenkins...@googlegroups.com
I have a machine in production which is running Ubuntu 12.04. I need to setup Jenkins on it. I was trying to follow this tutorial -

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-jenkins-on-ubuntu-12-04

But I am not able to make it work since the first line which I am trying to execute it's not working at all -

    wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

This line just hangs and it doesn't do anything. It makes me think that there is a firewall and we cannot access any outside link.

This is what I got when I ran wget -

    david@machineA:~$ wget https://jenkins-ci.org/debian/jenkins-ci.org.key
    --2015-03-30 13:21:20--  https://jenkins-ci.org/debian/jenkins-ci.org.key
    Resolving jenkins-ci.org... 199.193.196.24
    Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
    Retrying.
   
    --2015-03-30 13:21:44--  (try: 2)  https://jenkins-ci.org/debian/jenkins-ci.org.key
    Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
    Retrying.
   
    --2015-03-30 13:22:07--  (try: 3)  https://jenkins-ci.org/debian/jenkins-ci.org.key
    Connecting to jenkins-ci.org|199.193.196.24|:443... failed: Connection timed out.
    Retrying.
   
    --2015-03-30 13:22:31--  (try: 4)  https://jenkins-ci.org/debian/jenkins-ci.org.key
    Connecting to jenkins-ci.org|199.193.196.24|:443...

So now is there any other way by which I can setup jenkins manually as a service in my production machine cleanly?

Any step by step guidance will be greatly appreciated.

Baptiste Mathus

unread,
Mar 31, 2015, 1:28:33 AM3/31/15
to jenkins...@googlegroups.com
https://jenkins-ci.org/debian/jenkins-ci.org.key works for me. Seems a network issue on your side.

FWIW:
$ md5sum jenkins-ci.org.key
9fa06089848262c5a6383ec27fdd2575  jenkins-ci.org.key

Cheers

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/870157b4-f108-48fc-927d-a03c4029bf18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !
nbsp;!

Check Peck

unread,
Apr 2, 2015, 4:09:23 PM4/2/15
to jenkins...@googlegroups.com, m...@batmat.net
If I add they key directly then the first two lines works fine -

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'

But after that if I execute this line “sudo apt-get update“ – I get below error : Is there any other way to install this properly?

Err http://pkg.jenkins-ci.org binary/ Release.gpg

  Could not connect to pkg.jenkins-ci.org:80 (199.193.196.24). - connect (110: Connection timed out)

Ign http://pkg.jenkins-ci.org binary/ Release

Err http://pkg.jenkins-ci.org binary/ Packages

  Unable to connect to pkg.jenkins-ci.org:http:

Err http://pkg.jenkins-ci.org binary/ Translation-en_US

  Unable to connect to pkg.jenkins-ci.org:http:

Err http://pkg.jenkins-ci.org binary/ Translation-en

  Unable to connect to pkg.jenkins-ci.org:http:

W: Failed to fetch http://pkg.jenkins-ci.org/debian/binary/Release.gpg  Could not connect to pkg.jenkins-ci.org:80 (199.193.196.24). - connect (110: Connection timed out) 

W: Failed to fetch http://pkg.jenkins-ci.org/debian/binary/Packages  Unable to connect to pkg.jenkins-ci.org:http:

W: Failed to fetch http://pkg.jenkins-ci.org/debian/binary/en_US  Unable to connect to pkg.jenkins-ci.org:http:

W: Failed to fetch http://pkg.jenkins-ci.org/debian/binary/en  Unable to connect to pkg.jenkins-ci.org:http: 

E: Some index files failed to download. They have been ignored, or old ones used instead.

Reply all
Reply to author
Forward
0 new messages