public class SpinUpJenkinsMaster extends Object
Constructor and Description |
---|
SpinUpJenkinsMaster() |
Modifier and Type | Method and Description |
---|---|
protected static void |
bootstrap(String hostname,
String privateKey) |
protected static void |
enableRootSSH(String username,
String hostname,
String privateKey) |
protected static void |
exec(org.kuali.common.util.channel.api.SecureChannel channel,
String command,
List<String> args) |
protected static void |
exec(org.kuali.common.util.channel.api.SecureChannel channel,
String command,
String... args) |
protected static void |
exec(org.kuali.common.util.channel.api.SecureChannel channel,
String command,
String arg) |
protected static void |
execFormattedCommand(org.kuali.common.util.channel.api.SecureChannel channel,
boolean quiet,
String command,
Object... args) |
protected String |
findLatestSlaveAMI(org.kuali.common.aws.ec2.api.EC2Service service,
com.amazonaws.services.ec2.model.Tag stack) |
protected static String |
formatString(String s,
Object... args) |
protected static String |
getDefaultAMI(com.amazonaws.regions.Region provided) |
protected org.kuali.common.dns.api.DnsService |
getDnsService() |
protected com.amazonaws.services.ec2.model.Instance |
getInstance(org.kuali.common.aws.ec2.api.EC2Service service,
BasicLaunchRequest request,
List<com.amazonaws.services.ec2.model.Tag> tags,
JenkinsContext jenkinsContext) |
protected static JenkinsContext |
getJenkinsContext(org.kuali.common.core.system.VirtualSystem vs,
Map<String,JenkinsContext> contexts) |
protected static Map<String,JenkinsContext> |
getJenkinsContexts(Tags.Name name) |
protected static List<com.amazonaws.services.ec2.model.Tag> |
getJobsVolumeTags(JenkinsContext ctx) |
protected static List<com.amazonaws.services.ec2.model.Tag> |
getMasterTags(JenkinsContext context,
String fqdn) |
protected static MountVolumeRequest |
getMountVolumeRequest(com.amazonaws.services.ec2.model.Instance instance,
JenkinsContext ctx) |
protected static org.kuali.common.util.channel.model.RemoteFile |
getRemoteExecutableJar(String artifactId) |
protected static String |
getResource(String basedir,
org.kuali.common.util.project.model.ProjectIdentifier project,
org.kuali.common.aws.ec2.model.Distro distro,
String version,
String script) |
protected static org.kuali.common.util.channel.model.ChannelContext.Builder |
getSilentContextBuilder(String hostname) |
protected static org.kuali.common.util.condition.Condition |
getSshCondition(String username,
String hostname,
String privateKey) |
protected static void |
info(String msg,
Object... args) |
protected void |
mountVolumeContainingJobsAndBuilds(org.kuali.common.util.channel.api.SecureChannel channel,
com.amazonaws.services.ec2.model.Instance instance,
JenkinsContext jenkinsContext,
org.kuali.common.aws.ec2.api.EC2Service service) |
protected static org.kuali.common.util.channel.api.SecureChannel |
openSecureChannel(String username,
String hostname,
String privateKey,
boolean quiet) |
protected static String |
publishProject(org.kuali.common.util.channel.api.SecureChannel channel,
org.kuali.common.util.project.model.ProjectIdentifier pid,
String username,
String hostname,
boolean quiet) |
void |
test() |
protected void |
updateDns(com.amazonaws.services.ec2.model.Instance instance,
String alias) |
protected static void |
verifySSH(String username,
String hostname,
String privateKey) |
protected void |
wait(org.kuali.common.util.channel.api.SecureChannel channel,
String path,
String token,
long timeout,
long sleep) |
public SpinUpJenkinsMaster()
protected void mountVolumeContainingJobsAndBuilds(org.kuali.common.util.channel.api.SecureChannel channel, com.amazonaws.services.ec2.model.Instance instance, JenkinsContext jenkinsContext, org.kuali.common.aws.ec2.api.EC2Service service)
protected void wait(org.kuali.common.util.channel.api.SecureChannel channel, String path, String token, long timeout, long sleep)
protected static MountVolumeRequest getMountVolumeRequest(com.amazonaws.services.ec2.model.Instance instance, JenkinsContext ctx)
protected static List<com.amazonaws.services.ec2.model.Tag> getJobsVolumeTags(JenkinsContext ctx)
protected com.amazonaws.services.ec2.model.Instance getInstance(org.kuali.common.aws.ec2.api.EC2Service service, BasicLaunchRequest request, List<com.amazonaws.services.ec2.model.Tag> tags, JenkinsContext jenkinsContext)
protected String findLatestSlaveAMI(org.kuali.common.aws.ec2.api.EC2Service service, com.amazonaws.services.ec2.model.Tag stack)
protected static Map<String,JenkinsContext> getJenkinsContexts(Tags.Name name)
protected static JenkinsContext getJenkinsContext(org.kuali.common.core.system.VirtualSystem vs, Map<String,JenkinsContext> contexts)
protected static void bootstrap(String hostname, String privateKey) throws IOException
IOException
protected static org.kuali.common.util.channel.model.RemoteFile getRemoteExecutableJar(String artifactId)
protected static String publishProject(org.kuali.common.util.channel.api.SecureChannel channel, org.kuali.common.util.project.model.ProjectIdentifier pid, String username, String hostname, boolean quiet)
protected static org.kuali.common.util.channel.model.ChannelContext.Builder getSilentContextBuilder(String hostname)
protected static String getResource(String basedir, org.kuali.common.util.project.model.ProjectIdentifier project, org.kuali.common.aws.ec2.model.Distro distro, String version, String script)
protected static void exec(org.kuali.common.util.channel.api.SecureChannel channel, String command, String arg)
protected static void exec(org.kuali.common.util.channel.api.SecureChannel channel, String command, String... args)
protected static void exec(org.kuali.common.util.channel.api.SecureChannel channel, String command, List<String> args)
protected static void execFormattedCommand(org.kuali.common.util.channel.api.SecureChannel channel, boolean quiet, String command, Object... args)
protected static org.kuali.common.util.channel.api.SecureChannel openSecureChannel(String username, String hostname, String privateKey, boolean quiet) throws IOException
IOException
protected static void enableRootSSH(String username, String hostname, String privateKey) throws IOException
IOException
protected static org.kuali.common.util.condition.Condition getSshCondition(String username, String hostname, String privateKey)
protected void updateDns(com.amazonaws.services.ec2.model.Instance instance, String alias)
protected org.kuali.common.dns.api.DnsService getDnsService()
protected static List<com.amazonaws.services.ec2.model.Tag> getMasterTags(JenkinsContext context, String fqdn)
protected static String formatString(String s, Object... args)
protected static String getDefaultAMI(com.amazonaws.regions.Region provided)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.