
Jenkins Agent
A Jenkins automation agent.
Jenkins Agent
jenkins/inbound-agent:jdk17
Just deployed
/home/jenkins/agent
Jenkins
Build great things at any scale
The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
Agent Setup
Jenkins Node Setup
Follow these steps to create a node in your Jenkins instance.
- Setup the agent on Jenkins
- Go to your Jenkins dashboard
- Go to Manage Jenkins option in main menu
- Go to Nodes item in System Configuration
- Go to New Node option in side menu
- Fill the Node(agent) name and select the type; (e.g. Name: agent1, Type: Permanent Agent)
- Now fill the fields like remote root directory, labels, # of executors, etc.
root directory
should be set to/home/jenkins/agent
Launch method
should be set toLaunch agent by connecting it to the controller
- Press the Save button and the agent1 will be registered, but offline for the time being. Click on it.
- You should now see the secret used for the configuration of the template.
Template configuration
- Set the
JENKINS_AGENT_NAME
environment variable to the agent name you selected above. - Set the
JENKINS_SECRET
environment variable to the secret generated above. - Set the
JENKINS_URL
environment variable to the url of your Jenkins instance. If using the Jenkins Template, it should be set tohttp://${{Jenkins.JENKINS_PRIVATE_URL}}:${{Jenkins.JENKINS_PRIVATE_PORT}}
Your agent should now be setup.
Template Content
Jenkins Agent
jenkins/inbound-agent:jdk17JENKINS_URL
Url for the Jenkins server. Should be in the format: http://${{Jenkins.JENKINS_PRIVATE_URL}}:${{Jenkins.JENKINS_PRIVATE_PORT}}
JENKINS_SECRET
The secret as shown on the controller after creating the agent.
JENKINS_AGENT_NAME
The name of the agent, it should match the name you specified when creating the agent on the controller.