HowTo resolve setup issues - Jenkins Dynamic Slaves
As we all know that, Jenkins is capable of spinning slave nodes dynamically, we need to setup/configure Jenkins server to make this possible. Since the intention is to explain on AWS slave nodes, I would like to share the error, that I resolved recently.
Pre-requisites for Dynamic slave node setup
- Jenkins 2.x version
- AWS EC2 plugin for Jenkins
- Jenkins -> Manage Jenkins -> Configure system
- Add new EC2 cloud
- I have added in all the configurations required like, Lable, AMI, private key, subnet, security groups etc
- Then again, Jenkins -> Manage Nodes -> Launch node => failed with below error
Error:
Resolution:
Launching dynamic slave node, will fail for reasons when one or more of the AWS parameters defined for Dynamic slave was not in sync with the base AMI image. For example, the availability zone, security group, subnets could be different from what the base image/instance is holding and hence we receive the above error, while the slave node is attempted for launch
Try setting the EC2 parameters as explained in the 'Configure system' section and then slave node should with all ease !!
No comments:
Post a Comment