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. On Monday, March 30, 2015 at 10:28:33 PM UTC-7, Baptiste Mathus wrote: > > 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 > > 2015-03-31 0:16 GMT+02:00 <[email protected] <javascript:>>: > >> 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. >> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/870157b4-f108-48fc-927d-a03c4029bf18%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/870157b4-f108-48fc-927d-a03c4029bf18%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> >> -- >> Baptiste <Batmat> MATHUS - http://batmat.net >> Sauvez un arbre, >> Mangez un castor ! >> nbsp;! > > -- 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/b8ee072f-1a42-416e-bd1a-5677d9d268c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
