Using GitLab Webhooks with Jenkins locally - jenkins

I keep running into the same error with my setup. I want to configure jenkins and gitlab to automatically build some code on push events. I´m running the docker version of gitlab, while jenkins is running on localhost.
I tried setting up GitLab Jenkins Integration according to the documentation but the connection is continuously refused and I am asked to check my jenkins details(which are 100% correct, since Im using the standard configuration.)
When I tried setting up the webhook manually I´m confronted with a 422 error:
Picture of the response body
I think that this problem might be connected to the fact that I´m trying to set up everything locally. Any help would be appreciated.

Related

gitlab plugin test connection issue on jenkins

Im having issue with gitlab plugin test connection on jenkins. it gives error when I hit the "test connection" button with the given values.
GitLab user is maintainer and has full access on it. GitLab API token belongs to this user.
unfortunately it seems no way to track this error. I checked the logs files in jenkins machine as well.
GitLab Plugin Version is -> 1.5.27
you may see screenshot of the page here
alternative link:
https://gyazo.com/2b81c4310c7a144651fda54c6b1462c1

Jenkins CI not available in Gitlab Integrations

Im working in GitLab and Jenkins Integrations. Its working fine in scheduling process.
I'm trying CI from GitLab with Jenkins. All the blogs and tutorials explained with JenkinsCI But that option is not available in GitLab->Integrations. GitLab-Integration please refer the image.
I have tried without Jenkins CI using webhook getting the error.
enter image description here
Error: Webhook executed successfully But returning Http 500
I have tried my personal account in that I can see the jenkins under Integration able to add setting then moved to Active Integration

Automatic build with Jenkins and GitLab

I deploy Jenkins and GitLab using Docker (locally), both are connected with each other.
One of the problems (not very important) is with SSH. I create ssh key inside Jenkins container and set it to GitLab, but when Jenkins try to checkout the repository throws "Permission Denied". So, executing Jenkins bash, try to run git command and what's happen? GitLab container needs a password for access. Searching, and trying to do as a virtualized server, no works. Whatever, I solved using user and password (I don't like, but works).
The important problem. I don't have any problem creatin, and running, a job (using pipelines). The job download the world from GitLab and send the result to GitLab. The problem, after add a webhook with Jenkins URL to GitLab, push something but nothing happens in Jenkins, not trigger the job.
Anyone can help me?
Thanks!!
Is your webhook working correctly ?? are you able to send/receive request and response, if not refer to
Github webhook URL config issue? How to fix it?
When you push does it trigger a request ? can you try hitting it with postman if you do have a request. If you can provide more information, then it will be helpful :)

Jenkins query failed with exception'No connection could be made because the target machine actively refused it 127.0.0.1:8080 '

As the stated title I ran into a problem when trying to hook TFS to Jenkins in order to trigger build automatically when code is committed to the server.
Here's the detailed picture.
FYI: I setup Jenkins on my localhost:8080 as default, my project I use on TFS also coded on local machine and use local DB (no idea if that's the problem). Project built successfully on Jenkins.
Please help me fix this problem and explain details if possible, since I'm new to Jenkins as well as CI/CD. Thanks in advance! :)
Use IP address instead of localhost in Jenkins base URL.
Make sure you have projects configured in Jenkins.
https://www.visualstudio.com/get-started/integrate/integrating-with-service-hooks-vs

Jenkins docker-plugin - Job does not start (waiting for executor)

I'm trying not (not hard enough it seems) to get our jenkins server to provision a jenkins-slave using docker.
I have installed the Docker-plugin and configured it according to the description on the page. I have also tested the connectivity and at least this part works.
I have also configured 1 label in the plugin and in my job. I even get a nice page showing me the connected jobs for this slave.
When I then try to start a build nothing really happens. A build is scheduled, but never started - (pending—Waiting for next available executor).
From the message it would seem like jenkins is not able to start the slave via docker....
I'm using docker 1.6.2 and the plugin is 0.10.1.
Any clue to what is going on would be much appreciated!
It seems the problem was that I had added the docker version in the plugin config. That is apparently a no-go according to this post

Resources