AWS AMI label not recognized in Jenkins

Viewed 13

I am trying to setup an AWS AMI agent in Jenkins via the EC2 plugin. I add a label to the AMI in the cloud/node configuration and add the agent to my jenkinsfile:

agent {label 'agent'}

But when I try to run the job, it gets hung up looking for the agent and indicates "‘Jenkins’ doesn’t have label ‘agent'." Any suggestion on how to get Jenkins to recognize the AMI agent label? Also, I have tested the AWS and AMI connections and they pass just fine.

Thank you!

1 Answers

Jenkins is an open source automation server. It helps automate the parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery

Related