| I am working on configuring the ec2-plugin with Groovy I have a bit of code, but need some help How do I setup the EC2Cloud and then configure it for my AMI
import jenkins.model.*
import hudson.plugins.ec2.*
def cloud = new EC2Cloud(
cloudName="foo",
useInstanceProfileForCredentials=true,
credentialsID="foo",
region="us-west-2",
privateKey="foo",
instanceCapStr="foo",
templates=""
)
def cloudList = Jenkins.instance.clouds
cloudList.add(EC2Cloud)
|