Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.02 KB

L7-Jenkins_master_and_slave_setup.md

File metadata and controls

27 lines (24 loc) · 1.02 KB

Jenkins Master and Slave Setup

  1. Add credentials
  2. Add node

Add Credentials

  1. Manage Jenkins --> Manage Credentials --> System --> Global credentials --> Add credentials
  2. Provide the below info to add credentials
    kind: ssh username with private key
    Scope: Global
    ID: maven_slave
    Username: ec2-user
    private key: dpo.pem key content

Add node

Follow the below setups to add a new slave node to the jenkins

  1. Goto Manage Jenkins --> Manage nodes and clouds --> New node --> Permanent Agent
  2. Provide the below info to add the node
    Number of executors: 3
    Remote root directory: /home/ec2-user/jenkins
    Labels: maven
    Usage: Use this node as much as possible
    Launch method: Launch agents via SSH
    Host: <Private_IP_of_Slave>
    Credentials: <Jenkins_Slave_Credentials>
    Host Key Verification Strategy: Non verifying Verification Strategy
    Availability: Keep this agent online as much as possible