Jenkins GitHub Integration | Jenkins Tutorial | Part IV

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มิ.ย. 2024
  • Learn how to create your first Jenkins Job in Maven project.
    Kick Start Testing: accounts.lambdatest.com/regis...
    Try Continuous Testing with Jenkins on Cloud Selenium Grid: www.lambdatest.com/continuous...
    This video is a part of our Jenkins Tutorial series. In this video Moss(@tech_with_moss), explains how you can create a Jenkins job for a Maven project, through Jenkins and Maven integration. The video also walks through the steps to do so, Jenkins build triggers, Jenkins test reports, and other details in the process.
    By the end of this video, you will learn -:
    🔸 How to create a local Maven project in Jenkins?
    🔸 How do I set test results in Jenkins?
    🔸 How do I run a Jenkins performance test?
    🔸 How do I integrate Jenkins webhook with GitHub?
    Vɪᴅᴇᴏ Cʜᴀᴘᴛᴇʀꜱ
    ➤ 0:00 Introduction to Jenkins Tutorial for Beginners
    ➤ 0:28 Key features of the Maven project job type
    ➤ 0:54 Sample Maven project to be built in the Jenkins server
    ➤ 2:21 Step 1: Creating a Jenkins Maven Project
    ➤ 2:51 Step 2: Setup the source code management for the Maven project Jenkins job
    ➤ 3:54 Step 3: Updating the branch specifier in the Jenkins job for Maven project
    ➤ 4:07 Step 4: What are Jenkins Build Triggers and how to update them in a Jenkins job
    ➤ 9:31 Step 5: Specifying and updating the Build setup for Jenkins job for Maven project
    ➤ 10:33 Step 6: Adding the Jenkins webhook to the GitHub repository
    ➤ 11:42 Building the Jenkins job for Maven project and verifying the content of the built job
    ➤ 12:21 Jenkins test result trends and Jenkins test reports
    ➤ 13:30 What is Jenkins build artifacts and how to access them
    ➤ 16:06 Conclusion
    *𝑪𝒐𝒎𝒑𝒍𝒆𝒕𝒆 𝑷𝒍𝒂𝒚𝒍𝒊𝒔𝒕*
    ◾ What is Jenkins, and Why is it used? | Jenkins Tutorial | Part I: bit.ly/3fzh1il
    ◾ How to Install and Configure Jenkins? | Jenkins Tutorial | Part II: bit.ly/2VZhNhl
    ◾ How To Install Maven Plugin | Jenkins Tutorial | Part III: bit.ly/38CcOqh
    ◾ Jenkins GitHub Integration | Jenkins Tutorial | Part IV: bit.ly/3skqHSJ
    ◾ Creating Jenkins Job For Maven Project | Jenkins Tutorial | Part V: bit.ly/3g6mflN
    ◾ How To Add Jenkins Controller & Agent Node for Windows | Jenkins Tutorial | Part VI: bit.ly/3yPowZZ
    ◾ Add a Jenkins controller and Jenkins agent node in azure | Jenkins Tutorial | Part VII: bit.ly/37IOx14
    ◾ Jenkins Pipeline Tutorial | Jenkins Tutorial | Part VIII: bit.ly/3iUVP8B
    ◾ Cross Browser Testing With LambdaTest Jenkins Plugin | Jenkins Tutorial | Part IX: bit.ly/3jUH4ln
    *𝑹𝒆𝒍𝒂𝒕𝒆𝒅 𝑩𝒍𝒐𝒈𝒔*
    How To Set Jenkins Pipeline Environment Variables?: bit.ly/2VFRM6K
    Comprehensive Guide To Jenkins Declarative Pipeline: bit.ly/3jJDBpI
    How To Create & Run A Job In Jenkins Using Jenkins Freestyle Project?: bit.ly/3COPFyG
    Also Read:
    Integration Of Jenkins With Selenium WebDriver: bit.ly/3fVhlrB
    Sign Up for LambdaTest! It’s FREE 🙌
    Perform scalable and reliable cross browser compatibility testing of your website and web app on the latest mobile and desktop browsers: accounts.lambdatest.com/regis...
    Register Now to Avail Bonanza Offerings 💎
    + Test websites and web apps on 3000+ real browsers over LambdaTest cloud
    + Trusted By 600,000+ users, 500+ enterprises and 130+ countries
    + Online scalable Selenium Grid to perform Manual as well as Automation Testing
    + 100 minutes of free Web + Mobile Automation Testing
    + 60 minutes of free Live Interactive Testing per month
    + 10 Screenshot Tests per month
    + 10 Responsive Tests per month (Test a page across 50+ Device configurations with a single click)
    + Unlimited free testing on LT Browser
    For questions: support@lambdatest.com 😃
    *𝑬𝒙𝒑𝒍𝒐𝒓𝒆*
    🎬 Most Recent Videos: bit.ly/3kUUeAQ
    🎓 Learning Hub: bit.ly/3fr6l4Z
    🎥 LambdaTest Customers: bit.ly/2TB7pvD
    🚀 Webinars: bit.ly/37i41co
    🛠️ Product Updates: bit.ly/3717NGO
    💬 LambdaTest Certifications: bit.ly/3x4EtcY
    *𝑺𝒐𝒄𝒊𝒂𝒍*
    📝 BLOG: bit.ly/3yGVsUc
    👥 COMMUNITY: bit.ly/3Aiz5oO
    🔴 NEWSLETTER: bit.ly/3juhxzc
    🖼️ GITHUB: bit.ly/3jowfYs
    🛠️ TH-cam: bit.ly/3rH2Yfh
    🌎 LINKEDIN: bit.ly/3xA6F84
    👥 FACEBOOK: bit.ly/37mbQOa
    🐦TWITTER: bit.ly/3Cn0g3A
    📸 PINTEREST: bit.ly/2VCXI05
    #jenkinsjob #jenkinsbuildtriggers #Jenkinsmaven #maven #jenkins #tutorial #mavenproject #mavenplugin
    Disclaimer:
    This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2021 LambdaTest. Any illegal reproduction of this content will result in immediate legal action
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @basamnath2883
    @basamnath2883 3 ปีที่แล้ว +4

    Best tutorial I have ever come across. Thank You so much

    • @LambdaTest
      @LambdaTest  3 ปีที่แล้ว

      Thanks Basam

    • @SuperheroKaif
      @SuperheroKaif 9 หลายเดือนก่อน

      @@LambdaTest Bro you left us hanging as to how did you configure your server to receive webhook request at /github-webhook.
      Could you please point to the tutorial where you build this endpoint?

  • @aryannava2600
    @aryannava2600 8 หลายเดือนก่อน +1

    I was struggling to find best answer in Google until I saw your video. I made my Jinkins works after watching your instructions. Thank you.

    • @LambdaTest
      @LambdaTest  7 หลายเดือนก่อน

      Glad it was helpful.
      Please subscribe to our TH-cam channel for more such videos 🌟

  • @elielberra2867
    @elielberra2867 11 หลายเดือนก่อน +1

    This is the best Jenkins tutorial, super clear and useful, thanks!!

    • @LambdaTest
      @LambdaTest  11 หลายเดือนก่อน

      We're delighted that you found it helpful! 😊
      Don't forget to subscribe to our channel for the latest updates on upcoming tutorials! ✨

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

    wow! really great walkthrough! dropped a like and subscribed. thank you!

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

      Thanks for the sub!

  • @yonahcitron226
    @yonahcitron226 11 หลายเดือนก่อน +1

    great tutorial - really comprehensive! thank you :)

    • @LambdaTest
      @LambdaTest  11 หลายเดือนก่อน

      Glad you found this helpful😊
      Subscribe to our channel to never miss an update on the upcoming tutorials! ✨

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

    Awesome video! Thanks for sharing!

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

      Thanks for watching!
      Subscribe, and look forward to more such tutorials! ✨

  • @weaverbeavergaming5540
    @weaverbeavergaming5540 10 หลายเดือนก่อน +1

    Really good tutorial! You really know you way round Jenkins! 👴

    • @LambdaTest
      @LambdaTest  10 หลายเดือนก่อน

      Glad you found this helpful😊
      Subscribe to our channel to never miss an update on the upcoming tutorials! ✨

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

    Great tutorial as always.

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

      I have a question if we are using Selenium can we execute the script and if yes can you please provide guideline how can we do that.
      One more question is AWS EC2 with public IP address is available free?

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

      Glad you liked it

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

    💯 The Best One... thanks a lot

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

      Glad you liked it!
      Subscribe, and look forward to more such tutorials! ✨

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

      ​@@LambdaTest already subscribed 😊 You are the first and only youtuber who explains how to set up Jenkins-Github connection without any gap... Congrats !❤

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

    It worked! :), I've downgraded the Jenkins and used the same version you were using in this tutorial. I was using the latest Jenkins version 2.332.1, will dig around this issue to get it solved and will post the findings if any. Thanks!!

  • @shamax2201
    @shamax2201 2 หลายเดือนก่อน

    Thank you!

    • @LambdaTest
      @LambdaTest  หลายเดือนก่อน

      Glad the video was helpful!
      Please subscribe the channel for more such videos🙂

  • @PankajSharmaPS
    @PankajSharmaPS 2 หลายเดือนก่อน

    super like 👍

    • @LambdaTest
      @LambdaTest  2 หลายเดือนก่อน +1

      Glad you liked it!
      Please subscribe to the channel for more such videos🌟

  • @udaykumarmankena5941
    @udaykumarmankena5941 3 ปีที่แล้ว

    Hi, thanks for the detailed videos, very useful. Is there a way to follow along without a public Jenkins instance?

    • @LambdaTest
      @LambdaTest  3 ปีที่แล้ว

      I don't believe it is possible to follow along without a Jenkins instance that doesn't have some public access point. You would need an on-premise Enterprise version of GitHub inside of your network to follow along with a Jenkins instance that doesn't have a public access point. GitHub Enterprise Cloud version may have a feature to allow connections to a corporate/private network but if so I am not aware of it.

  • @phurjangsherpa4432
    @phurjangsherpa4432 11 หลายเดือนก่อน +1

    Can you do a video where build is triggered when you send a PR from specific branches,. I tried using wild card but it did not work

    • @LambdaTest
      @LambdaTest  10 หลายเดือนก่อน

      Absolutely, we'll definitely address that soon.

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

    Why do we need both a personal access token and an SSH key? Aren't both used to authenticate with GitHub?

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

      Hi Clemens, both are used to authenticate the GitHub account. We have used here personal access token to verify if Jenkins is reachable with the GitHub APIs and used ssh-key to clone the private repository for the CI/CD pipeline.

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

    Hi, could you help me please? I've been trying to connect my AWs intance as you did, but always shows me an error, about No ED25519 or ecdsa, i created a new ssh (ecdsa and ED25519), but it doesn't work, add githubt to kwnos host neither, even I created a new aws intance, do you have any idea what happends there? or what can I do to solve?

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

      Hey Rubi 👋🏻
      Can you please try runing the following command on the Jenkins server, as the Jenkins user, to get a proper known_hosts file.
      ssh -T git@github.com
      After this, restart Jenkins and it will work.
      Please let us know if this helps

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

    Thanks for this very informative tutorial. But there is one question left in my mind: why do i need access tokens and ssh keys when using jenkins with github? Shouldn't both access methods do the same thing, which is communicating with GitHub. Why are both methods necessary?

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

      Hey there 👋🏻
      Access tokens are used to authenticate Jenkins with the GitHub API, while SSH keys are used for authenticating the Jenkins server with GitHub repositories over SSH. Both methods serve different purposes and are necessary for allowing Jenkins to interact with GitHub in different ways while providing a secure and efficient way to automate workflows.

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

    Hi, Need help on Jenkins build trigger. In a github repository there is a specific file called details.txt, if any change is done in details.txt the jenkins job need to be triggered... Note: Only when there is any change in details.txt it need to be triggered not when something else is changed. How can we resolve this?

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

      Hey there 👋🏻
      Although we have configured Jenkins to communicate with our repository on GitHub, we still have to manually start the build from Jenkins. To automatically run builds, Jenkins listens for POST requests at a Hook URL. We need to give this URL to the repository on GitHub. Then, whenever code is pushed to that repository, GitHub will send a POST request to the Hook URL and Jenkins will run the build.

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

    Thank you for the great tutorial :),
    how do I set a base Jenkins URL like you have in 18:45 ? It still shows I'm on localhost

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

      In this video, we are using an AWS EC2 instance. When you run an EC2 instance with a dynamic IP it will automatically generate an IP and I think the hostname is automatically concatenated with the IP. This EC2 instance is available on the public internet as well. If you wanted a custom domain name for your Jenkins instance, I think you would need to configure a DNS server on your local network so that you could create a domain name like "my-jenkins-instance.com:8080/". If you were to configure DNS for an EC2 instance on AWS, I believe you would want to use the Route 53 AWS service.
      Hope it helps!

    •  2 ปีที่แล้ว +2

      Hello, A solution could be to use a free webhook proxy server. (SocketXP, LocalXpose etc.)
      Hope it helps.
      Great tutorials on this channel.
      Thanks

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

      @ Thanks

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

      @@LambdaTest How can you suddenly switch to AWS EC2 from localhost, very difficult to follow the tutorial...

  • @CuriousDev-bp1kw
    @CuriousDev-bp1kw 10 หลายเดือนก่อน +1

    How would you go about it if you are trying to connect a private repo?

    • @LambdaTest
      @LambdaTest  9 หลายเดือนก่อน

      Hey there,
      When integrating a private repo with Jenkins:
      1. Generate SSH Key:
      - In Jenkins server terminal, use ssh-keygen to create an SSH key.
      - Save the generated key, usually in ~/.ssh/id_rsa.
      2. Add SSH Key to GitHub:
      - Go to your GitHub account settings.
      - Navigate to "SSH and GPG keys" and click "New SSH key".
      - Copy the public key from ~/.ssh/id_rsa.pub on Jenkins server and paste it into GitHub.
      3. Configure Jenkins:
      - In Jenkins, go to "Manage Jenkins" > "Manage Credentials" > "(global)".
      - Add a new SSH Username with private key. Use the default id_rsa for the key.
      4. Job Configuration:
      - When creating or configuring a Jenkins job, under "Source Code Management", select "Git".
      - For "Repository URL", use the SSH URL of your private repo (e.g., git@github.com:username/repo.git).
      - Select the added credentials from the drop-down.
      5. Ensure Connection:
      - Test the connection to ensure Jenkins can access the private repository.