Configuring a macOS Machine as a Jenkins Node: A Step-by-Step Guide
This article walks you through the process of setting up a macOS machine as a Jenkins node, unlocking the ability to distribute tasks seamlessly and enhance your CI/CD workflows. Follow the steps outlined here to establish a connection between your Jenkins master and macOS node, enabling efficient job execution and resource utilization. Let’s dive into the world of distributed builds on macOS!
Setting Up a New Node in Jenkins:
Step 1: Open the Jenkins Dashboard
Step 2: Goto Dashboard>Manage Jenkins >System Configuration >Nodes
Step 3: Click on “+New Node” button
Step 4: Enter the Node Name
Step 5: Choose the “Permanent Agent” option under “Type.”
Step 6: Click on “Create”
Step 7: Provide Node Information.
- Description: Add a descriptive name for the node.
- Remote Directory: Specify the location on the remote machine where Jenkins will perform builds.
- Labels: Assign a label to identify the agent in pipeline scripts.
- Usage: Choose Use this node as much as possible.(You can change usage as per your needs
Step 8: In the “Launch Method” section, choose “Launch agent via SSH” from the dropdown menu.
Step 9: In Host enter the Host IP address.
Step 10: If you have Host machine credentials saved in Jenkins then select the credentials from Dropdown and goto Step 14 directly
Step 11: If the credentials are not saved in Jenkins then you can click on the Add button below the credentials
Step 12: Provide User Information.
- Username: Username of the Node machine.
- Password: Password of the Node machine.
- Scope: Scope of the credentials visibility. Go with the default option
- Description: User description
- ID: Usually left blank as Jenkins will assign a value. If explicitly you have provided one then make sure to use it in jobs create
Step 13: Click on Add. Now the User will come under the Credentials drop-down in Step 10.
Step 14:In Host Verification Strategy select “Non verifying Verification Strategy” from drop-down
Step 15: In Availability select “Keep this agent online as much as possible” from drop-down
Step 16: Click on “Save”
Step 17: In the Node listing page you will see the new node added
Step 18: Open the newly created node(Click on the node Name)
Step 19: Click on Log
Step 20:In Log you can see “Agent successfully connected and online”
To set up your Mac machine for remote access, you can refer to this article for detailed instructions.
I’d appreciate hearing your thoughts! If you find the content helpful, please consider sharing it with your network and show some love by clapping. Let’s continue learning together! Don’t forget to follow for more informative blogs.
“The beautiful thing about learning is that no one can take it away from you.” — B.B. King