How to trigger a Jenkins build from Gitlab using a Webhook trigger

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • In this video we will see how we can setup a Gitlab and Jenkins as service using the docker compose file. Once the services are up and running we will see how we can trigger a Jenkins Job from Gitlab whenever there is a commit happening in the Gitlab version control system.
    Blog Ref - middlewaretech...

ความคิดเห็น • 10

  • @cashedge1
    @cashedge1 9 หลายเดือนก่อน +1

    There is no way I can thankyou for this video, in whole you tube no one told about role why Setting is not visible for my user.All points are explained superbly. Thank you for all your selfless efforts for putting up this video.

  • @muhammadriansyahtohamba3062
    @muhammadriansyahtohamba3062 ปีที่แล้ว +1

    thanks for the videos

  • @AbhilashVV-ov3ek
    @AbhilashVV-ov3ek ปีที่แล้ว +1

    Thank you🙂

  • @sk8erboi84
    @sk8erboi84 ปีที่แล้ว +1

    Hello,
    I am having an issue when I try using this plugin with DSL.
    The error : groovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types : (java.lang.String) values : [ref]

    • @MiddlewareTechnologies
      @MiddlewareTechnologies  ปีที่แล้ว

      Hi @Sk8erboi84, Not sure where exactly you are getting this error. May be you want to look at this documentation and see what you are missing - docs.gitlab.com/ee/integration/jenkins.html

  • @samratrakshit2377
    @samratrakshit2377 2 ปีที่แล้ว +1

    Hi bro, explained really well, but I am getting SSL exception while trying for project. Is it because the jenkins ip is not public?

    • @MiddlewareTechnologies
      @MiddlewareTechnologies  2 ปีที่แล้ว

      thanks @Samrat Rakshit, Not sure if its the trigger from gitlab to jenkins which is failing. If you are setting it up on localhost may be try this settings update - docs.gitlab.com/ee/security/webhooks.html#allow-webhook-and-service-requests-to-local-network

  • @reddykumar8567
    @reddykumar8567 2 ปีที่แล้ว

    Nice bro ...working well

  • @theacevj2572
    @theacevj2572 2 ปีที่แล้ว

    Hi, Thanks for the tutorial, one question suppose I have a feature branch and when push happens to the feature branch I want the job to be triggered and for code checkout how to pass branch name dynamically i.e. if push to feature branch -> build triggers -> code checkout happens for feature branch...

    • @MiddlewareTechnologies
      @MiddlewareTechnologies  2 ปีที่แล้ว +1

      thanks.. yes it should be possible. I haven't explored that one though but as per gitlabl documentation - docs.gitlab.com/ee/user/project/integrations/webhooks.html#configure-a-webhook
      "Push events can be filtered by branch using a branch name or wildcard pattern to limit which push events are sent to your webhook endpoint. By default, all push events are sent to your webhook endpoint. You can configure branch filtering in the webhook settings in your project.
      "