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!