[JIRA] (JENKINS-40295) Configure EC2-Plugin with Groovy

1 view
Skip to first unread message

jsmickey@gmail.com (JIRA)

unread,
Dec 7, 2016, 4:49:01 PM12/7/16
to jenkinsc...@googlegroups.com
John Mickey created an issue
 
Jenkins / Bug JENKINS-40295
Configure EC2-Plugin with Groovy
Issue Type: Bug Bug
Assignee: Francis Upton
Components: ec2-plugin
Created: 2016/Dec/07 9:48 PM
Priority: Minor Minor
Reporter: John Mickey

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)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

raihaan.shouhell@autodesk.com (JIRA)

unread,
Jun 28, 2019, 1:53:02 PM6/28/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell resolved as Won't Fix
 

There is code on the wiki closing this

Change By: Raihaan Shouhell
Status: Open Resolved
Resolution: Won't Fix
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages