I have installed Jenkins in mac and it can be accessed with http://localhost:8080. When I try to add a git webhook, it says 'Couldn't connect to Server'. How can GitHub connect to Jenkins installed in mac?
I have installed all the Git plugins. I have tried with github personal token and github password too.
No code involved here
I expect the github webhook to connect to jenkins server
You need to configure webhook in GitHub first:
set url in configuration of webhook as follows:
http://YourIpAddress:8080/github-webhook/
Now, configure jenkins as mentioned below:
Setup you deploy keys (ssh keys) first in GitHub and Jenkins Credentials and then add github project info to your project, put ssh url of git repository (if repository is private), select webhook SCM hook pulling in Build triggers window of the respective project and add your other settings.
Now try to run this, it should work fine if all these steps followed.
Bitbucket can't connect because your localhost is not accessible from the internet.
What are you trying to use jenkins for?
Usually, you would want it to be installed on a server, not your local machine. That way it can be accessed by other team members and other tools/services such as Github.
Github or Bitbucket are internet based services.
As they are hosted "outisde" your network, these services cannot reach your ip (ie: 192.168.0.1.120)
Depending on your internet access provider, you might have a "public" IP visible from internet.
Once you'll have it, you then need to expose your port "8080" (Jenkins one) through your firewall or router...
Please notice opening firewall to well known service port is a risk to consider.
Related
I’m an absolute beginner when it comes to setting up a Jenkins environment but I have just installed Jenkins on a MAC v10.15.5 using home-brew and would like the capability to:
Open a web browser
Login to Jenkins from any machine on any network
Trigger a job.
I’m able to do this using a different machine on the same network but unable to do this using a machine on a different network. I changed the "httpListenAddress" value within the jenkins-lts.plist file to 0.0.0.0 to allow the web interface to be accessible from anywhere as mentioned at https://www.macminivault.com/installing-jenkins-on-macos/ but apart from that I’m not sure where to go from here.
I’ve heard about Apache Tomcat but not sure if it's necessary for what I need to do. If anyone can provide instructions / safe approaches about how to login to the Jenkins environment on my MAC from any network that would be appreciated.
To get jenkins web interface use $JENKINS_HOST_IP:8080 (by default jenkins uses port 8080) and then make first-run-configure.
Login to Jenkins from any machine on any network - it depends on network topology, what is used in your organisation. So, to reach jenkins host from any network where should be allowed traffic from/into network where jenkins host is placed.
Trigger a job - where are a lot of triggers you can use. Take a look at official documentation here
I have a Laravel app with CI/CD setup at BuddyWorks which lets you create deployment pipelines.
I want to use SSH action to run some config scripts (artisan...) after uploading the source code.
Unfortunately, it turned out that SSH connectivity to the hosting server is restricted to my home country, ergo can’t use BuddyWorks to do the job for me. The hosting company refused my request to whitelist BuddyWorks IP’s.
So here am, looking for a solution to bypass restriction.
Currently, I’m investigating SSH reverse for , but not sure I’m on good path.
Any help would be appreciated!
I ended up writing a small http->ssh proxy server with basic authentication which receives commands from pipeline via post requests and connects to the host server via ssh, executes the commands and logs to slack.
I have a local repository on my pc, and did this with Tortoisegit.
I also have an Amazon Web Services EC2 instance running Windows Server 2012, and have also installed Tortoisegit on there. I have opened port 9418(TCP), and created inbound firewall rules for it. I have a domain pointing to the server, and the server is accessible via HTTP (running apache) at my domain.
I have created a folder c:\Repos on the SERVER, and have set the HOME environment variable to point to this. Inside Repos I created a new folder named ProjectX.git, and then using the tortoise shell right click, created a BARE repository at the new folder.
I want to do an initial PUSH of my local repo, to the one on my server, by adding the server as a remote, but I'm not sure I have the url right.
// also for clarification who is user?
// Do I use the windows username?
git://user#hostname/ProjectX.git
Please refrain from 'elitist' answers such as 'use CLI idiot' or 'why dont u take the time to learn git properly instead of using gui shortcuts', which I see all over git questions online. GUI is there for a reason, enough said.
Decided that there just simply isn't enough good documentation out there to get the git:// protocol setup on windows, and to permanently share repos, i opted for SCM Manager. Which happens to work great. Very easy setup.
I have gitlab running behind a proxy, gitlab itself running on port 3000 not accessible from outside.
Mail notifications generated by gitlab always contain URLs with port 3000 in them, so where can I configure gitlab to generate links accessible from outside?
I already found
gitlab email setup
but I do not have email:host: or anything like that in my gitlab.yml
I'm running gitlab 5.2.0 right now.
EDIT: I would also appreciate any link to some info about the config options in gitlab.yml...
The setting is indeed in gitlab/config/gitlab.yml, it just isn't that clear anymore (config names and comments changed in gitlab 5.0 I think).
The section ## Web Server Settings is actually used to generate the links in emails. The only settings referring to emails are email_from: and support_email: but host:, port: and https: are also used for links in emails.
The actual IP and port settings can be found in puma.rb config file which is why I was confident enough to just tinker around with the gitlab.yml settings and it worked.
Solution for my problem: just comment the production:gitlab:port: setting or change it to your external port.
I am a newbie about SVN server. I've certainly used SVN to check in/out codes before, but never learned how to setup a Subversion server it up from ground up.
What I have:
Server | Windows Server 2012 Standard, Activated:
Installed Collabnet Subversion Edge,
Created a repository,
Created users and also started the server, using start button at GUI on localhost:4434/csvn/.
Client | MacOSX Mountain, with Xcode 4.5 Installed:
I have tried to add repository by using the external IP address and the repository name
like https://1.1.1.1/svn/, but as expected, it does not work and says "Host is unreachable".
I have tried to use the local hostname, no luck either. Although I did notice in their documentation, they mentioned IP address setting, but I cannot find it anywhere.
I would like to make it so that users can access and use the SVN repository remotely and locally.
I have no idea what to do, please help me. Thanks for your time!
Go back to the server for a minute. When you are configuring it, are you only using the local web browser? Have you tried accessing the server using web browser from your Mac? I would see if the Mac can reach the web gui first. Maybe you have network issues you have to resolve, such as DNS, routing or firewall.
In terms of using XCode, or any SVN Client, the URL you must enter is the URL to your repository. That will not be:
https://1.1.1.1/svn/
It will be something like:
https://1.1.1.1/svn/reposname
In the Subversion Edge web GUI if you go to the list of repositories, you will see an example checkout command next to each repository. This command shows you the URL to enter in a SVN client to reach the root of the repository. Example screenshot here:
https://ctf.open.collab.net/sf/projects/svnedge/screenshots/screens/repos/repos.png
I think I have sloved the problem. I knew I have to access the repo using my external IP address somehow, but when I tried something like, for example my IP is 1.1.1.1, when I typeed https://1.1.1.1/svn/reposname, I got a no response message.
I figured that since there are more than 1 computers on my local network, the router has to somehow direct the request to my server only, not some other machine. After some reaserch I found that port forwarding does the trick. Since apache server uses port 80 as default, just get the default gateway ip using ipconfig from CMD, then enable port forwarding for port 80, to the server's local ip address. At least I can access it using my external ip on my local network. I will try to access it remotely and see.