2
votes

I have Jenkins installed on an Ubuntu 18.04.3 LTS desktop PC on my localhost.

I also have an AzureDevOps repo on which I can successfully run a build, through a Jenkins pipeline job, connecitivity achieved via my AzureDevOps personal access token (PAT).

I am now trying to set up a Jenkins service connection or endpoint in AzureDevOps, to enable me trigger an Azure DevOps pipeline release whenever a Jenkins build completes successfully.

To achieve this in AzureDevOps, I am trying to set up access to Jenkins via a Jenkins service endpoint. The endpoint configuration requires among others, a Jenkins "Server URL" (screenshot below). Not surprisingly, AzureDevOps is unable to connect to my Jenkins instance as it's running on my local machine and therefore not publicly accessible.

Any suggestions on how I can overcome this hurdle would be most appreciated.enter image description here

1
You probably need to configure the agent jobDillip Kumar Behera
Nothing new to reporthitman126

1 Answers

1
votes

How to set up an Azure DevOps service connection or endpoint to my localhost Jenkins install

As we know, in order to receive the service hook notifications, you'll need to expose a port to the public internet.

To expose a port to the public internet, you can try to use the tool ngrok:

ngrok exposes local servers behind NATs and firewalls to the public internet over secure tunnels.

Please check the document Configure a service hook for PR events for some more details.

Hope this helps.