How to Install Jenkins Agent on Windows

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • Need help with your Jenkins questions?
    Visit community.jenkins.io/c/using-...
    Timecodes ⏱:
    00:00 Introduction
    00:06 Starting point
    00:22 Determine Java version running controller process
    01:21 Create agent definition on controller
    02:59 Verify basic configuration of Windows agent
    04:09 Download WinSW
    05:29 Create XML configuration file
    10:20 Install the service
    12:50 Troubleshoot the service configuration
    14:33 Review the agent status in the controller
    15:12 Specify a user to run the service
    20:53 Conclusion
    #jenkinstutorial #jenkinsagent
    Information referenced in this video:
    Link to Gist:
    gist.github.com/darinpope/a69...
    Jenkins LTS 2.332.2
    www.jenkins.io/changelog-stab...
    CloudBees on Twitter:
    / cloudbees
    Darin on Twitter:
    / darinpope
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Such a clear and easy to follow tutorial! Thank you for your time!

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

    Very clear tutorial. It makes it so easy to create a Jenkins agent. I struggled a lot when I was trying to install Jenkins agent a couple of years ago. Wish I had such a helpful tutorial to follow at that time.

  • @Anilkumar-py1pk
    @Anilkumar-py1pk ปีที่แล้ว

    Thank you Sir! Great article !! I have successfully configured Windows service using this.

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

    Great tutorial! Easy to understand and follow! Thank you :)

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

    Clear and concise! Love this presentation

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

    Very much helpful. Thanks a lot for this video

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

    This was excellent! Thanks for sharing the knowledge

  • @BJ-ru2cl
    @BJ-ru2cl ปีที่แล้ว

    Great tutorial! Thanks for your work.

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

    I start my Windows agent via SSH from the Controller. Very comfortable once set up

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

    clear step by step , thanks

  • @BarelyPayingattention
    @BarelyPayingattention 12 วันที่ผ่านมา

    Awesome tutorial. Great job!

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

    Thank you! Great tutorial

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

    GREAAAATTT! Thank you so much!

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

    Really helpful.. Thanks man.

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

    Wow he's good. Excellent tutorial.

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

    great tutorial

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

    Thanks a lot !!!

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

    fantastic

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

    awesome

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

    Is setting this up as a service any better than just running that "Run from agent command line" code from the command line manually?

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

    I enjoyed the video. I'm trying to get help because I encountered the following problem while trying to practice.
    1. Manage Jenkins
    2. Manage nodes and clouds
    3. Add New Node
    4. Launch method: Launch agent by connectong ot to the controller
    > Use WebSocket
    > 'WebSocket support is not enabled in this jenkins installation'

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

    I encountered error 1064: an exception occurred in the service when handling the control request. Does anyone know how to resolve it? I try to start it via the terminal and it says that the service starts successfully... but it doesn't.

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

    Hello, if Jenkins is already configured and running on a node in a folder, what do I need to change the folder?

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

    Anonymous read is turned on that's why you are not getting 403, Is there any method we can do the authentication without tokens/passwords for agent connection.

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

    Hello,
    After Windows Restart the Agent not started Automatically, what can I do please?

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

    I've been using winsw for 2 years now with fully automated auto-(re)connecting agents, I don't see a way to accomplish this if I have to manually type in the windows account password.
    Also, how secure is it having the agent secret in the winsw xml file on the filesystem?

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

      Technically, you can keep the secret in a separate file and just make the command line consume that file - there's an example of this in examples GitHub repo for WinSW.
      Also, using a custom local account is completely optional in my view - the default (Local System) is good enough in most situations.

  • @tinnu.universe
    @tinnu.universe 2 ปีที่แล้ว +2

    There used to be an easy way "launch the agent from browser and click on install it as windows service" without the steps for us to do. what happened to it? Why did you remove it?

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

      It has to do with some Java 11 Voodoo if I remember correct.

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

      It used Java Web Start, which was removed by Oracle starting in Java 11.

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

    Dont remove manual jnlp install agents pls.

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

    i try , but i get Handshake error ?

    • @BJ-ru2cl
      @BJ-ru2cl ปีที่แล้ว

      Maybe you can open the agent configuration page, enable "Use WebSocket" and try again.

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

      I'm getting the same error !!! tried both TCP and Websocket, did you fix it ???

    • @cedric13071974
      @cedric13071974 15 วันที่ผ่านมา

      Same error for me because Jenkins is behind a Apache which provide https. Adding the certificate to the keystore, or trying to force to use port 8080 doesn’t seems to work. The configuration for using a Windows agent is over-complicated.

    • @cedric13071974
      @cedric13071974 15 วันที่ผ่านมา

      Oh ho. Adding the certificate chain to the keystore solve my issue but now i have a Handshake error. So the SSL Handshake error i solved was different than yours.

  • @sandorbuda5909
    @sandorbuda5909 2 ปีที่แล้ว +3

    But for the service setup the simple Jenkins "solution" still exists (Tested on Jenkins 2.332.1)
    1. download the %JENKINS_URL%/computer/AGENt_name/jenkins-agent.jnlp to the agent wher you want to run the agent
    2. On the agent run javaws jenkins-agent.jnlp
    3. from the started GUI : File -> install as a service
    And it will create the windows service

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

      I tried this but unfortunately I'm using OpenJDK which doesn't include javaws :(

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

      @@muddyboy999 I guess I used openjdk 1.8

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

      @@muddyboy999 I have checked that. Adopt openjdk has "javaws" the icedtea-web

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

    Thank you very much for this easy and well detailed tutorial. :)

  • @user-nh9ql1qr1o
    @user-nh9ql1qr1o ปีที่แล้ว

    Great tutorial! Thanks for your work.